Queries for the AppServiceAppLogs table

For information on using these queries in the Azure portal, see Log Analytics tutorial. For the REST API, see Query.

Count app logs by severity

Bar chart of app log severities over time.

// To create an alert for this query, click '+ New alert rule'
AppServiceAppLogs 
| summarize count()  by CustomLevel, bin(TimeGenerated, 1h), _ResourceId
| render barchart 

App logs for each App Service

Breakdown of log levels for each App Service.

// To create an alert for this query, click '+ New alert rule'
AppServiceAppLogs 
| project CustomLevel, _ResourceId
| summarize count() by CustomLevel, _ResourceId