你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

Queries for the AGCAccessLogs table

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

Client requests per hour

Count of client requests hourly.

AGCAccessLogs
| summarize AggregatedValue = count() by bin(TimeGenerated, 1h), _ResourceId
| render timechart

5xx HTTP responses per hour

Count of client requests that resulted in 5xx responses hourly.

AGCAccessLogs
| where HttpStatusCode > 499 and HttpStatusCode < 600
| summarize AggregatedValue = count() by bin(TimeGenerated, 1h), _ResourceId
| render timechart

4xx HTTP responses per hour

Count of client requests that resulted in 4xx responses hourly.

AGCAccessLogs
| where HttpStatusCode > 399 and HttpStatusCode < 500
| summarize AggregatedValue = count() by bin(TimeGenerated, 1h), _ResourceId
| render timechart