Skip to content
This repository has been archived by the owner on Nov 16, 2023. It is now read-only.

Latest commit

 

History

History
14 lines (13 loc) · 819 Bytes

computers-with-non-reporting-protection-status-duration.md

File metadata and controls

14 lines (13 loc) · 819 Bytes

Computers with non-reporting protection status duration

#count #min #max #join #extend

The following example lists computers that had a list one "Not Reporting" protection status. It also measures the duration they were in this status (assuming it's a single event, not several "fragmentations" in reporting).

ProtectionStatus
| where ProtectionStatus == "Not Reporting"
| summarize count(), startNotReporting = min(TimeGenerated), endNotReporting = max(TimeGenerated) by Computer, ProtectionStatusDetails
| join ProtectionStatus on Computer
| summarize lastReporting = max(TimeGenerated), startNotReporting = any(startNotReporting), endNotReporting = any(endNotReporting) by Computer
| extend durationNotReporting = endNotReporting - startNotReporting