Skip to content
This repository has been archived by the owner on Feb 20, 2024. It is now read-only.

Commit

Permalink
Update Sentinel-ConnectorHealth.kql
Browse files Browse the repository at this point in the history
  • Loading branch information
adonm committed Jun 1, 2022
1 parent deccd63 commit 994ae57
Showing 1 changed file with 2 additions and 12 deletions.
14 changes: 2 additions & 12 deletions kql/Sentinel-ConnectorHealth.kql
Original file line number Diff line number Diff line change
@@ -1,12 +1,2 @@
let Now = now();
let timeago = 30d;
let interval = 1h;
(range TimeGenerated from ago(timeago) to Now - interval step interval
| extend Count = 0
| union isfuzzy=true
(SecurityIncident
| where ProviderName == "Microsoft 365 Defender"
| summarize Count = count() by bin_at(TimeGenerated, interval, Now)), TenantId
| summarize Count=max(Count) by bin_at(TimeGenerated, interval, Now), TenantId
| sort by TimeGenerated, TenantId
| project Value = iff(isnull(Count), 0, Count), Time = TimeGenerated, Tenant = TenantId, Legend = "Incidents")
find TimeGenerated > ago(2d)
| summarize Count = count() by bin(TimeGenerated, 1h), source_, TenantId

0 comments on commit 994ae57

Please sign in to comment.