mirror of
https://github.com/marcredhat/kql
synced 2026-06-10 22:11:18 +00:00
Initial commit: KQL ↔ SDL PowerQuery proof of equivalence
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
SigninLogs
|
||||
| where TimeGenerated > ago(1d)
|
||||
| extend locationString = strcat(tostring(LocationDetails["countryOrRegion"]), "/",
|
||||
tostring(LocationDetails["state"]), "/", tostring(LocationDetails["city"]), ";")
|
||||
| extend Day = format_datetime(TimeGenerated, "yyyy-MM-dd")
|
||||
| summarize LocationList = make_set(locationString),
|
||||
LocationCount = dcount(locationString),
|
||||
DistinctSourceIp = dcount(IPAddress),
|
||||
LogonCount = count()
|
||||
by Day, AppDisplayName, UserPrincipalName
|
||||
Reference in New Issue
Block a user