AppPlatformLogsforSpring 테이블에 대한 쿼리

"오류" 또는 "예외" 용어가 포함된 애플리케이션 로그 표시

지난 1시간 동안의 "오류" 또는 "예외" 용어가 포함된 애플리케이션 로그를 표시합니다.

// To create an alert for this query, click '+ New alert rule'
AppPlatformLogsforSpring
| where TimeGenerated > ago(1h)
| where Log contains "error" or Log contains "exception"
| project TimeGenerated , ServiceName , AppName , InstanceName , Log , _ResourceId 

각 애플리케이션의 오류 및 예외 번호 표시

애플리케이션당 지난 24시간 동안의 "오류" 또는 "예외" 용어가 포함된 로그 수의 원형 차트를 표시합니다.

// To create an alert for this query, click '+ New alert rule'
AppPlatformLogsforSpring 
| where TimeGenerated > ago(24h)
| where Log contains "error" or Log contains "exception"
| extend FullAppName = strcat(ServiceName, "/", AppName)
| summarize count_per_app = count() by FullAppName, ServiceName, AppName, _ResourceId
| sort by count_per_app desc 
| render piechart