mirror of
https://github.com/marcredhat/kql
synced 2026-06-11 14:31:16 +00:00
Initial commit: KQL ↔ SDL PowerQuery proof of equivalence
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
let timeframe = 1d; let lookback = 7d;
|
||||
let Recent = SigninLogs | where TimeGenerated > ago(timeframe) | where ResultType == 0;
|
||||
let Baseline = SigninLogs
|
||||
| where TimeGenerated between(ago(lookback + timeframe) .. ago(timeframe))
|
||||
| where ResultType == 0
|
||||
| summarize by AppDisplayName, UserAgent;
|
||||
Recent
|
||||
| join kind=leftanti Baseline on AppDisplayName, UserAgent
|
||||
| project TimeGenerated, UserPrincipalName, AppDisplayName, UserAgent
|
||||
Reference in New Issue
Block a user