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,7 @@
|
||||
DeviceFileEvents
|
||||
| where FileName endswith ".docx" or FileName endswith ".pdf" or FileName endswith ".xlsx"
|
||||
| where FolderPath contains "Confidential" or FolderPath contains "Sensitive"
|
||||
or FolderPath contains "Restricted"
|
||||
| where ActionType in ("FileAccessed","FileRead","FileModified","FileCopied","FileMoved")
|
||||
| extend User = tostring(InitiatingProcessAccountName)
|
||||
| summarize AccessCount = count() by FileName, User
|
||||
Reference in New Issue
Block a user