Query Details
//Check all Tables to see which ones have not ingested data in 3 days or more
union withsource=BadTable *
| where TimeGenerated > ago(30d)
| summarize Entries = count(), last_log = datetime_diff("second",now(), max(TimeGenerated)), estimate = sumif(_BilledSize, _IsBillable==true) by BadTable
| where last_log >= 259200
| project BadTableThis query checks all tables to see which ones have not received any new data in the past 3 days or more. It calculates the number of entries in each table, the time difference between the current time and the latest log entry, and estimates the total size of billable data. It then filters out tables where the last log entry is greater than or equal to 259,200 seconds (3 days) and displays the table name.

Rod Trent
Released: October 21, 2020
Tables
Keywords
Operators