Share via


StorageBlobLogs 數據表的查詢

最常見的錯誤

列出過去 3 天內最常見的錯誤 10 個。

StorageBlobLogs
| where TimeGenerated > ago(3d) and StatusText !contains "Success"
| summarize count() by StatusText
| top 10 by count_ desc

造成大部分錯誤的作業

列出過去 3 天內造成最多錯誤的前 10 個作業。

StorageBlobLogs
| where TimeGenerated > ago(3d) and StatusText !contains "Success"
| summarize count() by OperationName
| top 10 by count_ desc

延遲最高的作業

列出過去 3 天內最長端對端延遲的前 10 個作業。

StorageBlobLogs
| where TimeGenerated > ago(3d)
| top 10 by DurationMs desc
| project TimeGenerated, OperationName, DurationMs, ServerLatencyMs, ClientLatencyMs = DurationMs - ServerLatencyMs

造成伺服器端節流的作業

列出過去 3 天內造成伺服器端節流錯誤的所有作業。

// To create an alert for this query, click '+ New alert rule'
StorageBlobLogs
| where TimeGenerated > ago(3d) and StatusText contains "ServerBusy"
| project TimeGenerated, OperationName, StatusCode, StatusText, _ResourceId

顯示匿名要求

列出過去 3 天內具有匿名存取權的所有要求。

// To create an alert for this query, click '+ New alert rule'
StorageBlobLogs
| where TimeGenerated > ago(3d) and AuthenticationType == "Anonymous"
| project TimeGenerated, OperationName, AuthenticationType, Uri, _ResourceId

頻繁的作業圖表

過去3天內使用的作業餅圖。

StorageBlobLogs
| where TimeGenerated > ago(3d)
| summarize count() by OperationName
| sort by count_ desc 
| render piechart