Query Details
let endTime = now();
let startTime = ago(1d);
let emptyTableAnoamliesVolume = datatable(TimeGenerated:datetime, RecordCount:int)[];
emptyTableAnoamliesVolume
| union isfuzzy=true
( Anomalies
| where TimeGenerated between (StartTimeAnomalies..EndTimeAnomalies)
| make-series RecordCount = count() default=0 on TimeGenerated from StartTimeAnomalies to EndTimeAnomalies step 4h
| mv-expand RecordCount to typeof(int), TimeGenerated to typeof(datetime))
| project Result = pack_all()
The query is calculating the volume of anomalies in a table over a specific time period. It uses the "Anomalies" table and aggregates the number of records in each time interval. The result is then projected as a pack.

Rod Trent
Released: June 15, 2023
Tables
Keywords
Operators