Share via


AppServiceHTTPLogs tablosu için sorgular

App Service Sistem Durumu

App Service Sistem Durumu zaman serisi (5 dakikalık aralıklar üzerinde).

AppServiceHTTPLogs 
| summarize (count() - countif(ScStatus >= 500)) * 100.0 / count() by bin(TimeGenerated, 5m), _ResourceId
| render timechart 

Hata Kategorilere Ayırma

5xx ile sonuçlanan tüm istekleri kategorilere ayırın.

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)

İsteklerin yanıt süreleri

App Service başına ortalama & 90, 95 ve 99 yüzdebirlik yanıt süreleri (milisaniye cinsinden).

AppServiceHTTPLogs 
| summarize avg(TimeTaken), percentiles(TimeTaken, 90, 95, 99) by _ResourceId

İlk 5 İstemci

Trafik oluşturan ilk 5 istemci.

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

İlk 5 Makine

Trafik oluşturan ilk 5 makine.

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