Query Details
// Last time a Data Connector received data
union withsource=TableName1 *
| where TimeGenerated > ago(2d)
| project TimeGenerated, TableName1, DeviceVendor,ProviderName
| summarize last_log = datetime_diff("second", now(), max(TimeGenerated)),last_event_received = max(TimeGenerated) by TableName1, DeviceVendor,ProviderName
| project ['Table Name'] = TableName1, ['Latest Record Created'] = last_log, ['Time'] = last_event_received, DeviceVendor, ProviderName
| order by Time desc
This query retrieves the latest data received by a data connector. It filters the data to only include records from the past 2 days. It then calculates the time difference between the current time and the maximum time generated for each table, device vendor, and provider name. It also displays the maximum time generated for each combination. The results are ordered by the maximum time generated in descending order.

Rod Trent
Released: June 1, 2021
Tables
Keywords
Operators