MicrosoftDataShareSentSnapshotLog 資料表的查詢
如需在 Azure 入口網站 中使用這些查詢的詳細資訊,請參閱Log Analytics教學課程。 如需 REST API,請參閱 查詢。
依持續時間列出傳送的快照集
過去 7 天內依持續時間排序的快照集清單。
MicrosoftDataShareSentSnapshotLog
| where TimeGenerated > ago(7d)
| where StartTime != "" and EndTime != ""
| project StartTime , EndTime , DurationSeconds =(todatetime(EndTime)-todatetime(StartTime))/1s , ResourceName = split(_ResourceId,"/accounts/",1)
| sort by DurationSeconds desc nulls last
計數失敗的傳送快照集
過去 7 天內失敗快照集的總計數。
MicrosoftDataShareSentSnapshotLog
| where TimeGenerated > ago(7d)
| where Status == "Failed"
| summarize count() by _ResourceId
已傳送快照集中的常見錯誤
列出過去 7 天內的前 10 個錯誤。
MicrosoftDataShareSentSnapshotLog
| where TimeGenerated > ago(7d)
| where Status == "Failed"
| summarize count() by _ResourceId, DataSetType// Counting failed logs per datasettype
| top 10 by count_ desc nulls last
每日傳送快照集的圖表
最近快照集計數的時間圖表,成功 VS 失敗。
//Succeeded VS Failed
MicrosoftDataShareSentSnapshotLog
| where TimeGenerated > ago(30d)
| summarize count() by bin(TimeGenerated, 1d), Status, _ResourceId // Aggregating by day //Click "Table" to see resource's name.
| render timechart