Поделиться через


Запросы для таблицы AppServiceHTTPLogs

Здоровье Служба приложений

Временные ряды Служба приложений Работоспособность (с более чем 5-минутными интервалами).

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

Классификация сбоев

Классифицируйте все запросы, которые привели к 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)

Время отклика запросов

Среднее время отклика & 90, 95 и 99 процентилей (в миллисекундах) на Служба приложений.

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

Топ-5 клиентов

5 основных клиентов, которые генерируют трафик.

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

Первые 5 компьютеров

Первые 5 компьютеров, которые генерируют трафик.

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