Query Details

Unhealthy Connectors

Query

SentinelHealth
| where OperationName == 'Data fetch status change'
| summarize arg_max(TimeGenerated, *) by SentinelResourceId, SentinelResourceKind, SentinelResourceName
| where Status == "Failure"

Explanation

This query is searching for a specific operation called "Data fetch status change" in the SentinelHealth table. It then groups the results by the resource ID, resource kind, and resource name, and selects the latest record for each group. Finally, it filters the results to only show records where the status is "Failure".