-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathNonCommonEventIdsVolume.yaml
14 lines (14 loc) · 1.36 KB
/
NonCommonEventIdsVolume.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
let CommonEventIDs = datatable (EventID: int)
[1, 299, 300, 324, 340, 403, 404, 410, 411, 412, 413, 431, 500, 501, 1100, 1102, 1107, 1108, 4608, 4610, 4611, 4614, 4622, 4624, 4625, 4634, 4647, 4648, 4649, 4657, 4661, 4662, 4663, 4665, 4666, 4667, 4688, 4670, 4672, 4673, 4674, 4675, 4689, 4697, 4700, 4702, 4704, 4705, 4716, 4717, 4718, 4719, 4720, 4722, 4723, 4724, 4725, 4726, 4727, 4728, 4729, 4733, 4732, 4735, 4737, 4738, 4739, 4740, 4742, 4744, 4745, 4746, 4750, 4751, 4752, 4754, 4755, 4756, 4757, 4760, 4761, 4762, 4764, 4767, 4768, 4771, 4774, 4778, 4779, 4781, 4793, 4797, 4798, 4799, 4800, 4801, 4802, 4803, 4825, 4826, 4870, 4886, 4887, 4888, 4893, 4898, 4902, 4904, 4905, 4907, 4931, 4932, 4933, 4946, 4948, 4956, 4985, 5024, 5033, 5059, 5136, 5137, 5140, 5145, 5632, 6144, 6145, 6272, 6273, 6278, 6416, 6423, 6424, 8001, 8002, 8003, 8004, 8005, 8006, 8007, 8222, 26401, 30004];
union withsource = tt *
| where _IsBillable == true
| extend computerName = tolower(tostring(split(Computer, '.')[0]))
| where computerName != ""
| where Type == "SecurityEvent"
// FILTER - COMPUTER NAME
//| where computerName contains "ADDC"
// FILTER - TIME GENERATED
| where TimeGenerated >= ago(31d)
| where EventID !in ( CommonEventIDs )
// SUMMARIZATION BY EVENTID Collected
| summarize TotalVolumeGBytes=sum(_BilledSize) /1024/1024/1024 by EventID, Channel, ComputerName