Thursday, October 27, 2016

Viewing streaming logs using Azure PowerShell & using Site Control Manager

Using the Get-AzureWebsiteLog cmdlet, you can stream logs directly in the Azure PowerShell console window. The code shown here connects to the log-streaming service to start streaming the web server logs.

Get-AzureWebsiteLog -Name "contoso-web-west" -Tail -Path http


The Get-AzureWebsiteLog also supports a Message parameter that you can use to ilter
the output when streaming application logs. For example, the code shown here ilters the
log-streaming output to just application logs that are categorized as errors.


Get-AzureWebsiteLog -Name "contoso-web-west" -Tail -Message Error


 

Viewing streaming logs using Site Control Manager 

The log-streaming service is available in the Site Control Manager as an option in the Tools menu, as shown in Figure
 
The Tools menu in Site Control Manager showing the Log Stream option

Featured Posts

Adding Accesspolicy to KeyVault for Service Principal Using Portal and Powershell

  Scripts path : https://drive.google.com/drive/folders/1sbBpnVFgXhUIXLdf2E9heyWDeU2f9427?usp=sharing  Adding Accesspolicy to KeyVault for S...