< Back

Get-AzureWebsiteLog

Wed Jan 30, 2019 5:47 pm

NAME Get-AzureWebsiteLog



SYNOPSIS

Gets log for the specified website





SYNTAX

Get-AzureWebsiteLog [[-Name] <String>] [[-Path] <String>] [[-Message] <String>] [-Tail] <SwitchParameter> [-ListPath] <SwitchParameter> [[-Slot]

<String>] [<CommonParameters>]





DESCRIPTION

Gets log for the specified website





PARAMETERS

-Name <String>

The name of the Azure website



Required? false

Position? 1

Default value

Accept pipeline input? true (ByPropertyName)

Accept wildcard characters? false



-Path <String>

The path from which the log will be retrieved. By default it is Root which means include all the paths.



Required? false

Position? 2

Default value

Accept pipeline input? true (ByPropertyName)

Accept wildcard characters? false



-Message <String>

A string which will be used to filter the log message. Only logs which contains this string will be retrieved.



Required? false

Position? 3

Default value

Accept pipeline input? true (ByPropertyName)

Accept wildcard characters? false



-Tail <SwitchParameter>

Log streaming switch parameter



Required? true

Position? 4

Default value

Accept pipeline input? true (ByPropertyName)

Accept wildcard characters? false



-ListPath <SwitchParameter>

List log paths switch parameter



Required? true

Position? 5

Default value

Accept pipeline input? true (ByPropertyName)

Accept wildcard characters? false



-Slot <String>

The slot name



Required? false

Position? 1

Default value

Accept pipeline input? true (ByPropertyName)

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS









OUTPUTS









NOTES







Keywords: azure, azuresm, servicemanagement, management, service, utilities





-------------- Start log streaming --------------



C:\\PS>Get-AzureWebsiteLog -Tail



Starts log streaming for all application logs









-------------- Start log streaming for http--------------



C:\\PS>Get-AzureWebsiteLog -Tail -Path http



Starts log streaming for http logs









-------------- Start log streaming for Errors --------------



C:\\PS>Get-AzureWebsiteLog -Tail -Message Error



Starts log streaming and show error logs only









-------------- List available log paths --------------



C:\\PS>Get-AzureWebsiteLog -Name MyWebsite -ListPath



Lists all available log paths in the website











RELATED LINKS

New-AzureWebsite

Get-AzureWebsite

Start-AzureWebsite

Remove-AzureWebsite