Frågor för tabellen AppServiceHTTPLogs
Information om hur du använder dessa frågor i Azure Portal finns i Log Analytics-självstudien. Information om REST-API:et finns i Fråga.
App Service Health
Tidsserier för App Service Health (över 5 minuters intervall).
AppServiceHTTPLogs
| summarize (count() - countif(ScStatus >= 500)) * 100.0 / count() by bin(TimeGenerated, 5m), _ResourceId
| render timechart
Felkategorisering
Kategorisera alla begäranden som resulterade i 5xx.
AppServiceHTTPLogs
//| where ResourceId = "MyResourceId" // Uncomment to get results for a specific resource Id when querying over a group of Apps
| where ScStatus >= 500
| reduce by strcat(CsMethod, ':\\', CsUriStem)
Svarstider för begäranden
Genomsnittligt & 90, 95 och 99 percentilsvarstider (i millisekunder) per App Service.
AppServiceHTTPLogs
| summarize avg(TimeTaken), percentiles(TimeTaken, 90, 95, 99) by _ResourceId
De 5 främsta klienterna
De 5 främsta klienterna som genererar trafik.
AppServiceHTTPLogs
| top-nested of _ResourceId by dummy=max(0), // Display results for each resource (App)
top-nested 5 of UserAgent by count()
| project-away dummy // Remove dummy line from the result set
De 5 främsta datorerna
De 5 främsta datorerna som genererar trafik.
AppServiceHTTPLogs
| top-nested of _ResourceId by dummy=max(0), // Display results for each resource (App)
top-nested 5 of CIp by count()
| project-away dummy // Remove dummy line from the result set