MicrosoftDataShareReceivedSnapshotLog 表的查询
有关在 Azure 门户中使用这些查询的信息,请参阅 Log Analytics 教程。 有关 REST API,请参阅查询。
按持续时间列出收到的快照
过去 7 天内按持续时间排序的快照列表。
MicrosoftDataShareReceivedSnapshotLog
| where TimeGenerated > ago(7d)
| where StartTime != "" and EndTime != ""
| project StartTime , EndTime , DurationSeconds =(todatetime(EndTime)-todatetime(StartTime))/1s, ResourceName = split(_ResourceId,"/accounts/",1)// use split to get a part of the _ResourceId
| sort by DurationSeconds desc nulls last
计数接收到的快照失败
过去 7 天内失败的快照计数。
MicrosoftDataShareReceivedSnapshotLog
| where TimeGenerated > ago(7d)
| where Status == "Failed"
| summarize count() by _ResourceId
接收的快照中的频繁错误
过去 7 天内最常见的 10 个错误。
MicrosoftDataShareReceivedSnapshotLog
| where TimeGenerated > ago(7d)
| where Status == "Failed"
| summarize count() by _ResourceId, DataSetType // Counting failed logs per datasettype
| top 10 by count_ desc nulls last
每日接收快照的图表
过去一周每日快照计数的时间图表。
// Failed, In Progress and Succeeded Received Snapshots
MicrosoftDataShareReceivedSnapshotLog
| where TimeGenerated > ago(7d)
| summarize count() by bin(TimeGenerated, 1d), Status , _ResourceId // Aggregating by day //Click "Table" to see resource's name.
| render timechart