Skip to main content Link Menu Expand (external link) Document Search Copy Copied

Task 02: Validate Defender for Identity health

  1. In the leftmost pane, select Identities > Health issues.

    Connectors-5.png

    Review tenant and sensor health issues (misconfigurations, stopped services, outdated sensors).

  2. In the leftmost pane, select Investigation & response > Hunting > Advanced hunting.

  3. Copy the following KQL into the query window, select the entire query, then select Run query.

    Expand here to copy the Ingestion-KQL-1.txt

    Selecting the Copy option in the upper-right corner of the code block, and pasting with Ctrl+V, will be significantly faster than selecting Type!

     // IdentityLogonEvents ingestion heartbeat (tenant-wide)
     let window = 6h;  // adjust for your expected logon volume
     IdentityLogonEvents
     | summarize LastEvent = max(Timestamp), Events = count()
     | extend GapHours = datetime_diff("hour", now(), LastEvent)
     | extend IngestionHealthy = iff(LastEvent > ago(window), "Yes", "No")    
    

    Connectors-6.png

    The results will show whether Ingestion is happening and how long the gaps are.