Condividi tramite


Query per la tabella MicrosoftDataShareSentSnapshotLog

Elencare gli snapshot inviati per durata

Elenco degli snapshot ordinati in base al tempo di durata negli ultimi 7 giorni.

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 

Conteggio degli snapshot inviati non riusciti

Numero totale di snapshot non riusciti negli ultimi 7 giorni.

MicrosoftDataShareSentSnapshotLog
| where TimeGenerated > ago(7d)  
| where Status == "Failed" 
| summarize count() by _ResourceId 

Errori frequenti negli snapshot inviati

Elencare i primi 10 errori negli ultimi 7 giorni.

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

Grafico degli snapshot inviati quotidianamente

Un grafico temporale del conteggio degli snapshot recenti ha avuto esito negativo.

//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