-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathAzure Firewall_ARM.json
More file actions
2889 lines (2889 loc) · 213 KB
/
Azure Firewall_ARM.json
File metadata and controls
2889 lines (2889 loc) · 213 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
{
"contentVersion": "1.0.0.0",
"parameters": {
"workbookDisplayName": {
"type": "string",
"defaultValue": "Azure Firewall Workbook",
"metadata": {
"description": "The friendly name for the workbook that is used in the Gallery or Saved List. This name must be unique within a resource group."
}
},
"workbookType": {
"type": "string",
"allowedValues": [
"workbook",
"sentinel"
],
"defaultValue": "workbook",
"metadata": {
"description": "The gallery that the workbook will been shown under. Supported values include workbook, tsg, etc. Usually, this is 'workbook'"
}
},
"DiagnosticsWorkspaceName": {
"type": "string",
"defaultValue": "<WorkspaceName>",
"metadata": {
"description": "Provide the workspace name for your Network Diagnostic logs"
}
},
"DiagnosticsWorkspaceSubscription": {
"type": "string",
"defaultValue": "<WorkspaceSubscriptionID>",
"metadata": {
"description": "Provide the workspace subscription GUID for your Network Diagnostic logs"
}
},
"DiagnosticsWorkspaceResourceGroup": {
"type": "string",
"defaultValue": "<ResourceGroupName>",
"metadata": {
"description": "Provide the workspace resourcegroupname for your Network Diagnostic logs"
}
},
"workbookId": {
"type": "string",
"defaultValue": "[newGuid()]",
"metadata": {
"description": "The unique guid for this workbook instance"
}
}
},
"variables": {
"workbookSourceId": "[concat('/subscriptions/',parameters('DiagnosticsWorkspaceSubscription'),'/resourcegroups/', parameters('DiagnosticsWorkspaceResourceGroup'), '/providers/Microsoft.OperationalInsights/workspaces/',parameters('DiagnosticsWorkspaceName'))]",
"workbookContent": {
"version": "Notebook/1.0",
"items": [
{
"type": 1,
"content": {
"json": "## Azure Firewall Workbook\r\n---\r\n"
},
"name": "text - 23"
},
{
"type": 11,
"content": {
"version": "LinkItem/1.0",
"style": "tabs",
"links": [
{
"id": "20847ce8-91bc-4d8b-b878-a5a41c95c31c",
"cellValue": "selectedTab",
"linkTarget": "parameter",
"linkLabel": "Azure Firewall Overview",
"subTarget": "AFOverview",
"preText": "Azure Firewall Overview",
"style": "link"
},
{
"id": "f564709d-1658-46a1-8b44-892210e13017",
"cellValue": "selectedTab",
"linkTarget": "parameter",
"linkLabel": "Azure Firewall - Application rule log statistics",
"subTarget": "AFAppRule",
"style": "link"
},
{
"id": "1f6661e2-f873-4d56-879d-4d085d8cf1d4",
"cellValue": "selectedTab",
"linkTarget": "parameter",
"linkLabel": "Azure Firewall - Network rule log statistics",
"subTarget": "AFNetRule",
"style": "link"
},
{
"id": "ef1548c5-ef55-4eaa-8a81-b049cb93b56c",
"cellValue": "selectedTab",
"linkTarget": "parameter",
"linkLabel": "Azure Firewall - DNS Proxy",
"subTarget": "AFDNSProxy",
"style": "link"
},
{
"id": "18a4a585-2176-4d9f-907c-8e8d5f984efa",
"cellValue": "selectedTab",
"linkTarget": "parameter",
"linkLabel": "Azure Firewall Premium - IDPS",
"subTarget": "AFIDSIPS",
"style": "link"
},
{
"id": "97dc7364-961d-4c19-a730-7b9024f46b91",
"cellValue": "selectedTab",
"linkTarget": "parameter",
"linkLabel": "Azure Firewall - Investigation",
"subTarget": "AFInvestigate",
"style": "link"
}
]
},
"name": "links - 24"
},
{
"type": 9,
"content": {
"version": "KqlParameterItem/1.0",
"parameters": [
{
"id": "ab7d6c51-d7df-436c-96a2-429163aa50ec",
"version": "KqlParameterItem/1.0",
"name": "TimeRange",
"type": 4,
"isRequired": true,
"isGlobal": true,
"value": {
"durationMs": 86400000
},
"typeSettings": {
"selectableValues": [
{
"durationMs": 300000
},
{
"durationMs": 900000
},
{
"durationMs": 1800000
},
{
"durationMs": 3600000
},
{
"durationMs": 14400000
},
{
"durationMs": 43200000
},
{
"durationMs": 86400000
},
{
"durationMs": 172800000
},
{
"durationMs": 259200000
},
{
"durationMs": 604800000
},
{
"durationMs": 1209600000
},
{
"durationMs": 2419200000
},
{
"durationMs": 2592000000
},
{
"durationMs": 5184000000
},
{
"durationMs": 7776000000
}
],
"allowCustom": false
}
},
{
"id": "add90eb3-ff5f-4b19-9658-ff15c8043af5",
"version": "KqlParameterItem/1.0",
"name": "Workspaces",
"type": 5,
"isRequired": true,
"multiSelect": true,
"quote": "'",
"delimiter": ",",
"query": "where type =~ 'microsoft.operationalinsights/workspaces'\r\n| project id, name\r\n| order by name desc",
"crossComponentResources": [
"value::selected"
],
"value": [
"value::100"
],
"typeSettings": {
"additionalResourceOptions": [
"value::100"
]
},
"queryType": 1,
"resourceType": "microsoft.resourcegraph/resources"
},
{
"id": "5084e141-6c56-4d7f-bd8a-09f7ef9af1bc",
"version": "KqlParameterItem/1.0",
"name": "Resource",
"label": "Azure Firewalls",
"type": 5,
"isRequired": true,
"multiSelect": true,
"quote": "'",
"delimiter": ",",
"query": "where type =~ 'Microsoft.Network/azureFirewalls'\r\n| project id, name",
"crossComponentResources": [
"value::selected"
],
"value": [
"value::all"
],
"typeSettings": {
"additionalResourceOptions": [
"value::all"
]
},
"queryType": 1,
"resourceType": "microsoft.resourcegraph/resources"
},
{
"id": "13d9f6e9-9290-4b1e-b0d0-a7c0ebdc1aed",
"version": "KqlParameterItem/1.0",
"name": "Help",
"label": "Show Help",
"type": 10,
"description": "This will show some help information to help you understand the page you are on",
"isRequired": true,
"typeSettings": {
"additionalResourceOptions": []
},
"jsonData": "[[\r\n { \"value\": \"Yes\", \"label\": \"Yes\"},\r\n {\"value\": \"No\", \"label\": \"No\", \"selected\":true },\r\n { \"value\": \"Change Log\", \"label\": \"Change Log\"}\r\n]"
},
{
"id": "68f2cb32-03d4-4307-8eb5-1f66dfc09a85",
"version": "KqlParameterItem/1.0",
"name": "FirewallResources",
"label": "Show Resources",
"type": 2,
"description": "The is only used on the Overview page.",
"typeSettings": {
"additionalResourceOptions": [],
"showDefault": false
},
"jsonData": "[[\r\n { \"value\": \"Yes\", \"label\": \"Yes\", \"selected\":true},\r\n {\"value\": \"No\", \"label\": \"No\" }\r\n]",
"value": "No"
},
{
"id": "53aa8daf-29de-40a1-9147-c0970e32fac4",
"version": "KqlParameterItem/1.0",
"name": "GeoLocation",
"label": "GeoLocationCSV",
"type": 2,
"description": "Supplied as a value for GeoLocation lookup on queries: Read more here - https://docs.microsoft.com/en-us/azure/data-explorer/kusto/query/ipv4-lookup-plugin#ipv4-lookup---matching-rows-only",
"typeSettings": {
"additionalResourceOptions": [],
"showDefault": false
},
"jsonData": "\r\n[\r\n{\r\n\"value\": \"https://raw.githubusercontent.com/datasets/geoip2-ipv4/master/data/geoip2-ipv4.csv\", \"label\": \"GeoLocationDefault\", \"selected\": \"true\" \r\n}\r\n]\r\n\r\n"
}
],
"style": "pills",
"queryType": 0,
"resourceType": "microsoft.operationalinsights/workspaces"
},
"name": "parameters - 1"
},
{
"type": 12,
"content": {
"version": "NotebookGroup/1.0",
"groupType": "editable",
"items": [
{
"type": 1,
"content": {
"json": "### Overview - Change Log\r\n|Version|Description|\r\n|---|---|\r\n|v1.0\t|Initial Version|\r\n|V1.1.0\t|Split up the data sets, Overview, Application Rule Logs, Network Rule Logs, DNS Proxy Logs. Added in Investigation visibility with Azure Firewall + Azure Graph. Added in visibility to multiple workspaces and filtering to Firewall resources. |\r\n|V1.2.0 | Added new filteres, \"Show Help\", \"Show Resources\", \"GeoLocationCSV\", Updated query parsing to the Overview queries. Improved overall performance in large data scale performance with new parsing requirements."
},
"conditionalVisibilities": [
{
"parameterName": "Help",
"comparison": "isEqualTo",
"value": "Change Log"
},
{
"parameterName": "selectedTab",
"comparison": "isEqualTo",
"value": "AFOverview"
}
],
"name": "text - 40"
},
{
"type": 1,
"content": {
"json": "### Azure Firewall - App Rules - Change Log\r\n|Version|Description|\r\n|---|---|\r\n|v1.0.0 | Initial Version\r\n|V1.2.0 | Added in new Querires for Azure Firewall features, parsing is now used differently. Added Web Category."
},
"conditionalVisibilities": [
{
"parameterName": "selectedTab",
"comparison": "isEqualTo",
"value": "AFAppRule"
},
{
"parameterName": "Help",
"comparison": "isEqualTo",
"value": "Change Log"
}
],
"name": "text - 63"
},
{
"type": 1,
"content": {
"json": "### Azure Firewall - Network Rule - Change Log\r\n|Version|Description|\r\n|---|---|\r\n|V1.0.0 | Initial Version\r\n|V1.2.0 | Added in new Querires for Azure Firewall features, parsing is now used differently. Added in GeoLocation queries, updated main query to use GeoLocation data."
},
"conditionalVisibilities": [
{
"parameterName": "Help",
"comparison": "isEqualTo",
"value": "Change Log"
},
{
"parameterName": "selectedTab",
"comparison": "isEqualTo",
"value": "AFNetRule"
}
],
"name": "text - 64"
},
{
"type": 1,
"content": {
"json": "### Azure Firewall - DNSProxy - Change Log\r\n|Version|Description|\r\n|---|---|\r\n|V1.1.0 | Initial Version\r\n|V1.2.0 | No modifications were made"
},
"conditionalVisibilities": [
{
"parameterName": "Help",
"comparison": "isEqualTo",
"value": "Change Log"
},
{
"parameterName": "selectedTab",
"comparison": "isEqualTo",
"value": "AFDNSProxy"
}
],
"name": "text - 65"
},
{
"type": 1,
"content": {
"json": "### Azure Firewall Prem - IDPS - Change Log\r\n|Version|Description|\r\n|---|---|\r\n|V1.2.0 | Initial Version"
},
"conditionalVisibilities": [
{
"parameterName": "selectedTab",
"comparison": "isEqualTo",
"value": "AFIDSIPS"
},
{
"parameterName": "Help",
"comparison": "isEqualTo",
"value": "Change Log"
}
],
"name": "text - 66"
},
{
"type": 1,
"content": {
"json": "### Azure Firewall Prem - IDPS - Change Log\r\n|Version|Description|\r\n|---|---|\r\n|V1.0.0 | Initial Version\r\n|V1.2.0 | Added IDPS Logs to the investgation experience, Added in GeoLocation infromation. Updated the KQL logic to be faster for large data volume."
},
"conditionalVisibilities": [
{
"parameterName": "Help",
"comparison": "isEqualTo",
"value": "Change Log"
},
{
"parameterName": "selectedTab",
"comparison": "isEqualTo",
"value": "AFInvestigate"
}
],
"name": "text - 67"
}
]
},
"name": "ChangeLogGroup"
},
{
"type": 12,
"content": {
"version": "NotebookGroup/1.0",
"groupType": "editable",
"items": [
{
"type": 1,
"content": {
"json": "##### What's on this page?\r\n\r\nThe Azure Firewall - Overview page has the following features.\r\n\r\n- All Firewall Data Log Analytics Volume (Total)\r\n- All Firewall Data Log Analytics Volume (Per Firewall)\r\n- All Firewall Event Categories\r\n- All Firewall Event Categories over time\r\n- Azure Firewall Metrics data\r\n - Traffic\r\n - SNAT Port\r\n - Network Rule Count\r\n - Application Rule Count\r\n\r\n##### How to use this page?\r\n\r\nStart by looking at the workbook filters, examples would be TimeRange, Workspace, Azure Firewall. Note these are filtered based on your azure portal settings of \"Default subscription filter\". Selecting more resources or more workspaces has an impact on speed of results depending on the data volume of your workspaces. Why TimeRange is a large factor when looking at looking at extremely large data sets of volume(example over 1 Billion logs) so multiple filters have been offered to finetune the results without having to build your own queries.\r\n\r\nIf this is your first time looking at this workbook, my suggestion is to use 14 days(this is the fastest cached data in Log Analytics), a single workspace, a single firewall, if you're wanting to see the results of one firewall. Best to know where your firewall is sending it's logs too to confirm you didn't select a workspace that doesn't have that firewalls data. How to check, go to the Azure Firewall, click Diagnostic settings, see what Log Analytics workspace is currently configured.\r\n\r\n##### What's required for this workbook to function?\r\n\r\n- Azure Firewall Diagnostic settings enabled, and sending to workspace your azure ad user had RBAC permissions to. You need a minimum of read rights to the AzureDiagnostics table within the Log Analytics workspace.\r\n- Azure Metrics requires resource permissions of the Firewall you're wanting data on. "
},
"conditionalVisibility": {
"parameterName": "selectedTab",
"comparison": "isEqualTo",
"value": "AFOverview"
},
"name": "text - 59"
},
{
"type": 1,
"content": {
"json": "##### What's on this page?\r\n\r\nThe Azure Firewall - Application rule log statistics page has the following features.\r\n\r\nAnything that can be used as a filter within the workbook, you'll see a * next to it. If it's filterable, this mean you can click on something within the data set that will be pushed down the workbook for more additional filtering.\r\n\r\n- Unique Source IP Address*\r\n- Application Rule Usage\r\n- Denied/Allowed FQDN over time\r\n- Denied/Allowed FQDN count\r\n- Denied/Allowed Web Categories over time\r\n- Denied/Allowed Web Categories count\r\n- Pre-parsed Azure Firewall Application Rule Logs with a search feature.\r\n\r\n##### How to use this page?\r\n\r\nIf you're not comfortable with the filters on this workbook, my suggestion is to use the get-help on the overview page to get started.\r\n\r\nStarting out you'll see the unique source of IP addresses based on the global filters you have in place, this is showing only the top 10 IPAddresses, you can modify the KQL query to show more if needed if you click the \"Edit\" button. We added in the logic to show the volume over time, under the IP address/count information. If you click on the highest count (my example is 415,786 count, 10.0.24.4 ipaddress) it'll filter everything on the Application rule log statistic page to this IP address specifically. (Only Exception is the Rule Usage). Note this could cause other data sets to become blank as a result, sometimes you only have Approved or Denied access based on the configuration of the firewall.\r\n\r\nIf you're wanting to search for something a little more specific other than IPAddress filter, you can use the \"Search\" bar under the \"All IP Address events\" query to create a custom filter to the parsed logs. Example could be an FQDN \"wdcp.microsoft.com\" to pull up those logs specifically with that name in it.\r\n\r\n##### What's required for this workbook to function?\r\n\r\n- Azure Firewall Diagnostic settings enabled, specifically requires Application Diagnostic logs to be enabled for the workspace. You need a minimum of read rights to the AzureDiagnostics table within the Log Analytics workspace."
},
"conditionalVisibility": {
"parameterName": "selectedTab",
"comparison": "isEqualTo",
"value": "AFAppRule"
},
"name": "text - 1"
},
{
"type": 1,
"content": {
"json": "##### What's on this page?\r\n\r\nThe Azure Firewall - Network rule log statistics page has the following features.\r\n\r\nAnything that can be used as a filter within the workbook, you'll see a * next to it. If it's filterable, this mean you can click on something within the data set that will be pushed down the workbook for more additional filtering.\r\n\r\n- Rule Actions*\r\n\r\n- Target Ports*\r\n\r\n- DNAT Actions*\r\n\r\n- GeoLocation\r\n\r\n- Actions over time(Time scrub enabled)\r\n\r\n- Pre-parsed Network Rule data with GeoLocation added\r\n\r\n *Note: GeoLocation is using an public file, you have to modify your GeoLocation Global Filter tab to add your own data.*\r\n\r\n##### How to use this page?\r\n\r\nIf you're not comfortable with the filters on this workbook, my suggestion is to use the get-help on the overview page to get started.\r\n\r\nStarting out you'll get see pie charts on the screen, each of these can be clicked on to filter the data below. You'll have to click on the color of the wheel in order to use the filter feature. Downfall of this, if it's an extremely small data set, its hard to click on that color due to the challenge of even seeing it. These filters are a top down approach, meaning what clicked on top, filters below. If you'd like, feel free to test this out now. Under \"Target Ports, filterable by Target Port\" find port 53 ( pretty common port). Click on the wheel with the color that's associated to port 53. You'll see everything change below only showing data that has port 53 associated to it. If you'd like to remove this filter you have a few options. \r\n\r\n1. Click the \"Go back\" at the top right of the wheel\r\n2. Refresh the whole workbook\r\n3. Refresh the whole browser window\r\n\r\n*A note about the new feature added \"GeoLocation\", this is public data shared through the Log Analytics developer team to show the feature to associate IP addresses with a GeoLocation file. This had been added to the workbook to show you what's possible, it's encouraged for you to use your own data which could be further enriched. If you had Lat/Long data, you could even add in a map feature into this workbook to show you where the traffic is mostly.*\r\n\r\nMid-way down the page you'll see the \"Actions, by time\", if we saw a large spike and wanted to lower the window of traffic, select on the left side(where you're wanting to start, before the event occurred) drag, and move it over to the right. Example March 24th - March 27th. When i was looking over 14 days of time. This will filter the \"All IP Addresses events\" down to this new time window.\r\n\r\n##### What's required for this workbook to function?\r\n\r\n- Azure Firewall Diagnostic settings enabled, specifically requires Network Diagnostic logs to be enabled for the workspace. You need a minimum of read rights to the AzureDiagnostics table within the Log Analytics workspace."
},
"conditionalVisibility": {
"parameterName": "selectedTab",
"comparison": "isEqualTo",
"value": "AFNetRule"
},
"name": "text - 2"
},
{
"type": 1,
"content": {
"json": "##### What's on this page?\r\n\r\nThe Azure Firewall - DNS Proxy page has the following features.\r\n\r\nAnything that can be used as a filter within the workbook, you'll see a * next to it. If it's filterable, this mean you can click on something within the data set that will be pushed down the workbook for more additional filtering.\r\n\r\n- DNS Traffic by count (Time scrub enabled)\r\n- DNS Proxy by Request Name, by Count*\r\n- DNS Proxy Request by ClientIP, by Count*\r\n- Count over time of Proxy Requests by ClientIP\r\n- Pre-parsed DNS Proxy data\r\n\r\n##### How to use this page?\r\n\r\nIf you're not comfortable with the filters on this workbook, my suggestion is to use the get-help on the overview page to get started.\r\n\r\nStarting out you'll see the DNS Proxy traffic count, this is a great way to start to narrow down the proxy traffic over a period of time. Example we're looking at the 14 day window, but there was an odd spike or dip in proxy traffic, why? use the time scrub feature to select on the left side(where you're wanting to start, before the event occurred) drag, and move it over to the right. Example March 24th - March 27th.\r\n\r\nAfter adding our second time filter to the page, move forward to looking at the DNS requests. You might see a large spike in a specific DNS request, could be something you're not even familiar with. Using an example, i see a DNS request for \"md-fpp31tsvhx4s.blob.core.windows.net\" for 300K times in my current filters. By selecting this Request Name, it'll filter on the right showing me which clients are requesting this DNS traffic. Which after clicking on my request, i see 2 different IP addresses now. Oddly though, one is much smaller than the other. Lets select that Ip address to add an additional filter to the logs. Now we can see the logs related to that machine client ip, specifically around that DNS request name. This might help you narrow down if there are any actions that need to be taken on your firewall.\r\n\r\n##### What's required for this workbook to function?\r\n\r\n- Azure Firewall Diagnostic settings enabled, specifically requires DNS Proxy Diagnostic logs to be enabled for the workspace. You need a minimum of read rights to the AzureDiagnostics table within the Log Analytics workspace."
},
"conditionalVisibility": {
"parameterName": "selectedTab",
"comparison": "isEqualTo",
"value": "AFDNSProxy"
},
"name": "text - 3"
},
{
"type": 1,
"content": {
"json": "##### What's on this page?\r\n\r\nThe Azure Firewall Premium- IDPS page has the following features.\r\n\r\n*As noted on the title, these logs are only created on the Azure Firewall Premium sku*\r\n\r\nAnything that can be used as a filter within the workbook, you'll see a * next to it. If it's filterable, this mean you can click on something within the data set that will be pushed down the workbook for more additional filtering.\r\n\r\n- IDPS Actions Count*\r\n- IDPS Protocol Count*\r\n- IDPS SignatureID Count*\r\n- IDPS SourceIP Count*\r\n- Azure Firewall IDPS count over time (Time Scrub Enabled)\r\n- Azure Firewall IDPS logs with GeoLocation\r\n\r\n##### How to use this page?\r\n\r\nIf you're not comfortable with the filters on this workbook, my suggestion is to use the get-help on the overview page to get started.\r\n\r\nStarting out you'll see Pie Charts offering multiple filtering options to your IDPS logs, showing Alerts, Protocols, SignatureIDs and Sources of the logs. Lets start by selecting an ClientIP address(SourceIP) under the \"IDPS SourceIP Count, filterable by SourceIP\". I clicked on the largest one, you might of noticed most of the traffic under the IDPS logs are alerts, Mostly TCP to this ClientIP address and there could be some specific SignatureID's are being triggered. Looking further into the logs, you should expand the Source IP to see the different IP Addresses this client has talked to within the past 14 days(current global filter). The majority of the traffic is going to XX.XX.XX.XX, which is something to remember.\r\n\r\nGoing further down, you might noticed a spike in traffic, lets use the time scrub feature to narrow down the time window to that spike. Start by selecting on the left side(where you're wanting to start time to be, before the event occurred) drag, and move it over to the right(the end time). Example March 24th - March 27th.\r\n\r\n*Note; The GeoLocation + Data can take a long time to refresh.*\r\n\r\nYou should now be able to see data we filtered down to, with it based on GeoLocation/Signature ID's\r\n\r\n##### What's required for this workbook to function?\r\n\r\n- Azure Firewall Premium Diagnostic settings enabled, specifically requires IDPS Diagnostic logs to be enabled for the workspace. You need a minimum of read rights to the AzureDiagnostics table within the Log Analytics workspace."
},
"conditionalVisibility": {
"parameterName": "selectedTab",
"comparison": "isEqualTo",
"value": "AFIDSIPS"
},
"name": "text - 4"
},
{
"type": 1,
"content": {
"json": "##### What's on this page?\r\n\r\nThe Azure Firewall - Investigation page has the following features.\r\n\r\n*Note, this is a combination of all the logs within the Azure Firewall workbook. Some logs are from the Azure Firewall Premium sku*\r\n\r\nAnything that can be used as a filter within the workbook, you'll see a * next to it. If it's filterable, this mean you can click on something within the data set that will be pushed down the workbook for more additional filtering.\r\n\r\n- IFQDN Traffic by Count*\r\n- SourceIP Address*\r\n- SourceIPAddress Resource Lookup (Azure Resource Graph)\r\n- FQDN Lookup logs\r\n- Azure Firewall Threat Intel\r\n- Azure Firewall Premium with GeoLocation- IDPS\r\n\r\n##### How to use this page?\r\n\r\nIf you're not comfortable with the filters on this workbook, my suggestion is to use the get-help on the overview page to get started.\r\n\r\nThis is the page where we narrow down everything, You should considering adding your own twist based on your own investigations to this page. Leverage this as a template of where to start and how to move forward.\r\n\r\nStarting out we see FQDN and IP Address are the page's first filters offered.\r\n\r\nLooking at source count, you might see something that has a large count. Like the following example \"watson.telemetry.microsoft.com\". Click on the \"Deny\"/'Count' line to use the filter feature for the whole page.\r\n\r\nThis narrowed down our large list of client (SourceIP) address to a smaller list, which could be used to find out which client is being the loudest or maybe something that sneaked in that wasn't suppose to be talking to this FQDN in the first place. Click on an IPAddress(SourceIP). \r\n\r\nAzure Resource Graph is then used to find which machine this is, which Azure Resource NIC, Public IP address, Subnet, etc.\r\n\r\nUse the other data sets to help see the logs you've filtered based on the FQDN + IPAddress above. \r\n\r\n*Note, FQDN isn't required for the Azure Resource Graph lookup.*\r\n\r\nSome log sources might be blank, that's perfectly acceptable in this scenario as we're filtering down to alerts and events.\r\n\r\n##### What's required for this workbook to function?\r\n\r\n- All Azure Firewall Diagnostic Logs\r\n- RBAC Permissions for Azure Resource Graph lookup."
},
"conditionalVisibility": {
"parameterName": "selectedTab",
"comparison": "isEqualTo",
"value": "AFInvestigate"
},
"name": "text - 5"
}
]
},
"conditionalVisibility": {
"parameterName": "Help",
"comparison": "isEqualTo",
"value": "Yes"
},
"name": "Get-Help"
},
{
"type": 1,
"content": {
"json": "# Azure Firewall - overview"
},
"conditionalVisibility": {
"parameterName": "selectedTab",
"comparison": "isEqualTo",
"value": "AFOverview"
},
"name": "Main title"
},
{
"type": 3,
"content": {
"version": "KqlItem/1.0",
"query": "where type =~ 'Microsoft.Network/azureFirewalls'\r\n| extend Tier = trim(' ', tostring(properties.sku.tier))\r\n| extend Status = trim(' ', tostring(iif(isempty(properties.ipConfigurations.[0].properties.provisioningState),properties.provisioningState,properties.ipConfigurations.[0].properties.provisioningState)))\r\n| extend Premium = iff(Tier == \"Premium\", \"Yes\", \"No\")\r\n| extend Standard = iff(Tier == \"Standard\", \"Yes\", \"No\")\r\n| extend ProvisionedState = iff(Status == \"Succeeded\", \"Running\", \"Not Running\")\r\n| extend Policy = trim(' ', tostring(properties.firewallPolicy.id))\r\n| extend ApplicationRule1 = trim(' ', tostring(properties.applicationRuleCollections.[0].id))\r\n| extend ApplicationRule2 = trim(' ', tostring(properties.applicationRuleCollections.[0].id))\r\n| extend ApplicationRule3 = iff(ApplicationRule1 == \"\", \"N/A\", \"\")\r\n| extend ApplicationRule4 = iff(ApplicationRule2 contains \"subscription\", \"Configured\", \"\")\r\n| extend ApplicationRuleClassic = strcat(ApplicationRule3, ApplicationRule4)\r\n| extend NetworkRule1 = trim(' ', tostring(properties.networkRuleCollections.[0].id))\r\n| extend NetworkRule2 = trim(' ', tostring(properties.networkRuleCollections.[0].id))\r\n| extend NetworkRule3 = iff(NetworkRule1 == \"\", \"N/A\", \"\")\r\n| extend NetworkRule4 = iff(NetworkRule1 contains \"subscription\", \"Configured\", \"\")\r\n| extend NetworkRuleClassic = strcat(NetworkRule3, NetworkRule4)\r\n| project Firewall=id, Premium, Standard, ProvisionedState,FirewallPolicy= Policy, ApplicationRuleClassic, NetworkRuleClassic, location, resourceGroup, subscriptionId, tenantId",
"size": 1,
"title": "Azure Firewall Resource List",
"queryType": 1,
"resourceType": "microsoft.resourcegraph/resources",
"crossComponentResources": [
"value::selected"
],
"gridSettings": {
"formatters": [
{
"columnMatch": "Premium",
"formatter": 18,
"formatOptions": {
"thresholdsOptions": "colors",
"thresholdsGrid": [
{
"operator": "==",
"thresholdValue": "Yes",
"representation": "green",
"text": "{0}{1}"
},
{
"operator": "==",
"thresholdValue": "No",
"representation": "grayBlue",
"text": "{0}{1}"
},
{
"operator": "Default",
"thresholdValue": null,
"representation": null,
"text": "{0}{1}"
}
]
}
},
{
"columnMatch": "Standard",
"formatter": 18,
"formatOptions": {
"thresholdsOptions": "colors",
"thresholdsGrid": [
{
"operator": "==",
"thresholdValue": "Yes",
"representation": "green",
"text": "{0}{1}"
},
{
"operator": "==",
"thresholdValue": "No",
"representation": "grayBlue",
"text": "{0}{1}"
},
{
"operator": "Default",
"thresholdValue": null,
"representation": null,
"text": "{0}{1}"
}
]
}
},
{
"columnMatch": "ProvisionedState",
"formatter": 18,
"formatOptions": {
"thresholdsOptions": "colors",
"thresholdsGrid": [
{
"operator": "==",
"thresholdValue": "Running",
"representation": "green",
"text": "{0}{1}"
},
{
"operator": "==",
"thresholdValue": "Not Running",
"representation": "grayBlue",
"text": "{0}{1}"
},
{
"operator": "Default",
"thresholdValue": null,
"text": "{0}{1}"
}
]
}
},
{
"columnMatch": "ApplicationRuleClassic",
"formatter": 18,
"formatOptions": {
"thresholdsOptions": "colors",
"thresholdsGrid": [
{
"operator": "==",
"thresholdValue": "N/A",
"representation": "gray",
"text": "{0}{1}"
},
{
"operator": "Default",
"thresholdValue": null,
"representation": "green",
"text": "{0}{1}"
}
]
}
},
{
"columnMatch": "NetworkRuleClassic",
"formatter": 18,
"formatOptions": {
"thresholdsOptions": "colors",
"thresholdsGrid": [
{
"operator": "==",
"thresholdValue": "N/A",
"representation": "gray",
"text": "{0}{1}"
},
{
"operator": "Default",
"thresholdValue": null,
"representation": "green",
"text": "{0}{1}"
}
]
}
}
]
}
},
"customWidth": "100",
"conditionalVisibility": {
"parameterName": "FirewallResources",
"comparison": "isEqualTo",
"value": "Yes"
},
"name": "query - 60",
"styleSettings": {
"margin": "0"
}
},
{
"type": 3,
"content": {
"version": "KqlItem/1.0",
"query": "AzureDiagnostics \r\n| where Resource in~ (split(\"{Resource:label}\", \", \"))\r\n| where ResourceType == \"AZUREFIREWALLS\" \r\n| summarize Volume=count() by bin(TimeGenerated, {TimeRange:grain})",
"size": 0,
"title": "Events, by time: Query Time({$queryTime})",
"noDataMessage": "There are no firewall events being feed within the selected workspaces. If you believe the selection is correct, confirm logging has been enabled for the Azure Firewall and feeding into the selected workspace. Reference Docs: https://docs.microsoft.com/en-us/azure/firewall/",
"noDataMessageStyle": 4,
"timeContext": {
"durationMs": 86400000
},
"timeContextFromParameter": "TimeRange",
"queryType": 0,
"resourceType": "microsoft.operationalinsights/workspaces",
"crossComponentResources": [
"{Workspaces}"
],
"visualization": "timechart"
},
"customWidth": "25",
"conditionalVisibility": {
"parameterName": "selectedTab",
"comparison": "isEqualTo",
"value": "AFOverview"
},
"name": "query - 16"
},
{
"type": 3,
"content": {
"version": "KqlItem/1.0",
"query": "AzureDiagnostics\r\n| where Resource in~ (split(\"{Resource:label}\", \", \"))\r\n| where ResourceType == \"AZUREFIREWALLS\" \r\n| summarize Volume=count() by Resource, bin(TimeGenerated, {TimeRange:grain})",
"size": 0,
"title": "Events, by firewall over time: Query Time({$queryTime})",
"noDataMessage": "There are no firewall events being feed within the selected workspaces. If you believe the selection is correct, confirm logging has been enabled for the Azure Firewall and feeding into the selected workspace. Reference Docs: https://docs.microsoft.com/en-us/azure/firewall/",
"noDataMessageStyle": 4,
"timeContext": {
"durationMs": 86400000
},
"timeContextFromParameter": "TimeRange",
"exportParameterName": "TopEvent",
"exportDefaultValue": "{\"Resource\":\"*\",\"ResourceGroup\":\"*\"}",
"queryType": 0,
"resourceType": "microsoft.operationalinsights/workspaces",
"crossComponentResources": [
"{Workspaces}"
],
"visualization": "linechart",
"tileSettings": {
"titleContent": {
"columnMatch": "Resource",
"formatter": 1
},
"leftContent": {
"columnMatch": "amount",
"formatter": 12,
"formatOptions": {
"palette": "auto"
},
"numberFormat": {
"unit": 17,
"options": {
"maximumSignificantDigits": 3,
"maximumFractionDigits": 2
}
}
},
"showBorder": true
}
},
"customWidth": "25",
"conditionalVisibility": {
"parameterName": "selectedTab",
"comparison": "isEqualTo",
"value": "AFOverview"
},
"name": "Firewall per Resource Group"
},
{
"type": 3,
"content": {
"version": "KqlItem/1.0",
"query": "let materializedData =\r\nmaterialize(\r\nAzureDiagnostics\r\n| where ResourceType == \"AZUREFIREWALLS\"\r\n| project Category, ResourceType, OperationName);\r\nunion\r\n(\r\nmaterializedData\r\n | where OperationName == \"AzureFirewallIDSLog\"\r\n | summarize Volume=count() by OperationName\r\n | project Category=OperationName, Volume\r\n),\r\n(\r\nmaterializedData\r\n | where OperationName == \"AzureFirewallThreatIntelLog\"\r\n | summarize Volume=count() by OperationName\r\n | project Category=OperationName, Volume\r\n),\r\n(\r\nmaterializedData\r\n | where OperationName <> \"AzureFirewallThreatIntelLog\"\r\n | where OperationName <> \"AzureFirewallIDSLog\"\r\n | summarize Volume=count() by Category\r\n)\r\n| sort by Volume desc",
"size": 0,
"title": "Events, by category: Query Time({$queryTime})",
"noDataMessage": "There are no firewall events being feed within the selected workspaces. If you believe the selection is correct, confirm logging has been enabled for the Azure Firewall and feeding into the selected workspace. Reference Docs: https://docs.microsoft.com/en-us/azure/firewall/",
"noDataMessageStyle": 4,
"timeContext": {
"durationMs": 86400000
},
"timeContextFromParameter": "TimeRange",
"exportFieldName": "Category",
"exportParameterName": "SelectedCategory",
"exportDefaultValue": "*",
"queryType": 0,
"resourceType": "microsoft.operationalinsights/workspaces",
"crossComponentResources": [
"{Workspaces}"
],
"visualization": "piechart",
"tileSettings": {
"showBorder": false,
"titleContent": {
"columnMatch": "Category",
"formatter": 1
},
"leftContent": {
"columnMatch": "Volume",
"formatter": 12,
"formatOptions": {
"palette": "auto"
},
"numberFormat": {
"unit": 17,
"options": {
"maximumSignificantDigits": 3,
"maximumFractionDigits": 2
}
}
}
}
},
"customWidth": "25",
"conditionalVisibility": {
"parameterName": "selectedTab",
"comparison": "isEqualTo",
"value": "AFOverview"
},
"name": "Events by category"
},
{
"type": 3,
"content": {
"version": "KqlItem/1.0",
"query": "let materializedData =\r\nmaterialize(\r\nAzureDiagnostics\r\n| where ResourceType == \"AZUREFIREWALLS\"\r\n| project Category, ResourceType, OperationName, TimeGenerated);\r\nunion\r\n(\r\nmaterializedData\r\n | where OperationName == \"AzureFirewallIDSLog\"\r\n | summarize Volume=count() by OperationName, bin(TimeGenerated, {TimeRange:grain})\r\n | project Category=OperationName, Volume, TimeGenerated\r\n),\r\n(\r\nmaterializedData\r\n | where OperationName == \"AzureFirewallThreatIntelLog\"\r\n | summarize Volume=count() by OperationName, bin(TimeGenerated, {TimeRange:grain})\r\n | project Category=OperationName, Volume, TimeGenerated\r\n),\r\n(\r\nmaterializedData\r\n | where OperationName <> \"AzureFirewallThreatIntelLog\"\r\n | where OperationName <> \"AzureFirewallIDSLog\"\r\n | summarize Volume=count() by Category, bin(TimeGenerated, {TimeRange:grain})\r\n)\r\n| sort by Volume desc",
"size": 0,
"title": "Events categories, by time: Query Time({$queryTime})",
"noDataMessage": "There are no firewall events being feed within the selected workspaces. If you believe the selection is correct, confirm logging has been enabled for the Azure Firewall and feeding into the selected workspace. Reference Docs: https://docs.microsoft.com/en-us/azure/firewall/",
"noDataMessageStyle": 4,
"timeContext": {
"durationMs": 86400000
},
"timeContextFromParameter": "TimeRange",
"queryType": 0,
"resourceType": "microsoft.operationalinsights/workspaces",
"crossComponentResources": [
"{Workspaces}"
],
"visualization": "timechart"
},
"customWidth": "25",
"conditionalVisibility": {
"parameterName": "selectedTab",
"comparison": "isEqualTo",
"value": "AFOverview"
},
"name": "Events categories by time"
},
{
"type": 1,
"content": {
"json": "### Firewall Metrics\r\nThe data below dosen't read from the Log Analytics workpsace, it's reading directly from the resources which requires resource visibility. \r\nClick [here for more information on Azure Metrics](https://docs.microsoft.com/en-us/azure/azure-monitor/platform/data-platform-metrics)\r\n",
"style": "info"
},
"conditionalVisibility": {
"parameterName": "selectedTab",
"comparison": "isEqualTo",
"value": "AFOverview"
},
"name": "text - 39"
},
{
"type": 10,
"content": {
"chartId": "workbook76864ed5-dd34-42d0-ae35-f3db9f9e8f15",
"version": "MetricsItem/2.0",
"size": 0,
"chartType": 2,
"resourceType": "microsoft.network/azurefirewalls",
"metricScope": 0,
"resourceParameter": "Resource",
"resourceIds": [
"{Resource}"
],
"timeContextFromParameter": "TimeRange",
"timeContext": {
"durationMs": 86400000
},
"metrics": [
{
"namespace": "microsoft.network/azurefirewalls",
"metric": "microsoft.network/azurefirewalls--Throughput",
"aggregation": 4,
"splitBy": null,
"columnName": "All Firewall Throughput Average"
}
],
"title": "Average Throughput of Firewall Traffic",
"gridSettings": {
"rowLimit": 10000
}
},
"customWidth": "50",
"conditionalVisibility": {
"parameterName": "selectedTab",
"comparison": "isEqualTo",
"value": "AFOverview"
},
"name": "metric - 25"
},
{
"type": 10,
"content": {
"chartId": "workbook76864ed5-dd34-42d0-ae35-f3db9f9e8f15",
"version": "MetricsItem/2.0",
"size": 0,
"chartType": 2,
"resourceType": "microsoft.network/azurefirewalls",
"metricScope": 0,
"resourceParameter": "Resource",
"resourceIds": [
"{Resource}"
],
"timeContextFromParameter": "TimeRange",
"timeContext": {
"durationMs": 86400000
},
"metrics": [
{
"namespace": "microsoft.network/azurefirewalls",
"metric": "microsoft.network/azurefirewalls--SNATPortUtilization",
"aggregation": 4,
"splitBy": null
}
],
"title": "SNAT Port Utilization",
"gridSettings": {
"rowLimit": 10000
}
},
"customWidth": "50",
"conditionalVisibility": {
"parameterName": "selectedTab",
"comparison": "isEqualTo",
"value": "AFOverview"
},
"name": "metric - 25 - Copy"
},
{
"type": 10,
"content": {
"chartId": "workbook76864ed5-dd34-42d0-ae35-f3db9f9e8f15",
"version": "MetricsItem/2.0",
"size": 0,
"chartType": 2,
"resourceType": "microsoft.network/azurefirewalls",
"metricScope": 0,
"resourceParameter": "Resource",
"resourceIds": [
"{Resource}"
],
"timeContextFromParameter": "TimeRange",
"timeContext": {
"durationMs": 86400000
},
"metrics": [
{
"namespace": "microsoft.network/azurefirewalls",
"metric": "microsoft.network/azurefirewalls--NetworkRuleHit",
"aggregation": 1,
"splitBy": null
}
],
"title": "Network Rule Hitcount (SUM)",
"gridSettings": {
"rowLimit": 10000
}
},
"customWidth": "50",
"conditionalVisibility": {
"parameterName": "selectedTab",
"comparison": "isEqualTo",
"value": "AFOverview"
},
"name": "metric - 25 - Copy - Copy"
},
{
"type": 10,
"content": {
"chartId": "workbook76864ed5-dd34-42d0-ae35-f3db9f9e8f15",
"version": "MetricsItem/2.0",
"size": 0,
"chartType": 2,
"resourceType": "microsoft.network/azurefirewalls",
"metricScope": 0,
"resourceParameter": "Resource",
"resourceIds": [
"{Resource}"
],
"timeContextFromParameter": "TimeRange",
"timeContext": {
"durationMs": 86400000
},
"metrics": [
{
"namespace": "microsoft.network/azurefirewalls",
"metric": "microsoft.network/azurefirewalls--ApplicationRuleHit",
"aggregation": 1,
"splitBy": null
}
],
"title": "Application Rule Hitcount (SUM)",
"gridSettings": {
"rowLimit": 10000
}
},
"customWidth": "50",
"conditionalVisibility": {
"parameterName": "selectedTab",
"comparison": "isEqualTo",
"value": "AFOverview"
},
"name": "metric - 25 - Copy - Copy - Copy"
},
{
"type": 1,
"content": {
"json": "---\r\n# Azure Firewall - Application rule log statistics"
},
"conditionalVisibility": {
"parameterName": "selectedTab",
"comparison": "isEqualTo",
"value": "AFAppRule"
},
"name": "text - 14"
},
{
"type": 3,
"content": {
"version": "KqlItem/1.0",
"query": "let materializedData =\r\nmaterialize(\r\nAzureDiagnostics\r\n| where Category == \"AzureFirewallApplicationRule\"\r\n| where Resource in~ (split(\"{Resource:label}\", \", \"))\r\n| project ResourceId,ResourceGroup,SubscriptionId, msg_s, Resource, TimeGenerated);\r\nunion\r\n(\r\nmaterializedData\r\n| where msg_s has \"Web Category:\" and msg_s has \". Url\"\r\n| parse msg_s with Protocol \" request from \" SourceIP \":\" SourcePort \" to \" FQDN \":\" DestinationPort \". Url:\" Url \". Action: \" Action \". Rule Collection:\" RuleCollection \". Rule:\" Rule \". Web Category:\" WebCategory\r\n),\r\n(\r\nmaterializedData\r\n| where msg_s !has \"Web Category:\" and msg_s has \". Url\" and msg_s has \". No rule matched\"\r\n| parse msg_s with Protocol \" request from \" SourceIP \":\" SourcePort \" to \" FQDN \":\" DestinationPort \". Url:\" Url \". Action: \" Action \". No rule matched\" *\r\n),\r\n(\r\nmaterializedData\r\n| where msg_s !has \"Web Category:\" and msg_s !has \". Url\" and msg_s has \". No rule matched\"\r\n| parse msg_s with Protocol \" request from \" SourceIP \":\" SourcePort \" to \" FQDN \":\" DestinationPort \". Action: \" Action \". No rule matched\" *\r\n),\r\n(\r\nmaterializedData\r\n| where msg_s has \"Web Category:\" and msg_s !has \". Url\"\r\n| parse msg_s with Protocol \" request from \" SourceIP \":\" SourcePort \" to \" FQDN \":\" DestinationPort \". Action: \" Action \". Rule Collection:\" RuleCollection \". Rule:\" Rule \". Web Category:\" WebCategory\r\n),\r\n(\r\nmaterializedData\r\n| where msg_s !has \"Web Category:\" and msg_s !has \". Url\" and msg_s !has \"Rule Collection\" and msg_s !has \" Reason: \"\r\n| parse msg_s with Protocol \" request from \" SourceIP \":\" SourcePort \" to \" FQDN \":\" DestinationPort \". Action: \" Action \". \" RuleCollection \". \" Rule\r\n),\r\n(\r\nmaterializedData\r\n| where msg_s !has \"Web Category:\" and msg_s !has \". Url\" and msg_s !has \"Rule Collection\" and msg_s !has \"TLS extension was missing\"\r\n| where msg_s has \" Reason:\"\r\n| parse msg_s with Protocol \" request from \" SourceIP \":\" SourcePort \". Action: \" Action \". Reason: \" Rule \".\"\r\n),\r\n(\r\nmaterializedData\r\n| where msg_s !has \"Web Category:\" and msg_s !has \". Url\" and msg_s !has \"TLS extension was missing\" and msg_s !has \"No rule matched\"\r\n| parse msg_s with Protocol \" request from \" SourceIP \":\" SourcePort \" to \" FQDN \":\" DestinationPort \". Action: \" Action \". Rule Collection: \" RuleCollection \". Rule: \" Rule\r\n),\r\n(\r\nmaterializedData\r\n| where msg_s !has \"Web Category:\" and msg_s !has \". Url\" and msg_s !has \"Rule Collection\" and msg_s !has \" Reason: \"\r\n| where msg_s has \"Rule Collection Group\"\r\n| parse msg_s with Protocol \" request from \" SourceIP \":\" SourcePort \" to \" FQDN \":\" DestinationPort \". Action: \" Action \". Policy:\" Policy \". Rule Collection Group:\" RuleCollectionGroup \". Rule Collection: \" RuleCollection \". Rule: \" Rule\r\n)\r\n| summarize Amount=count() by SourceIP\r\n| join kind = inner\r\n( union (\r\nmaterializedData\r\n| where msg_s has \"Web Category:\" and msg_s has \". Url\"\r\n| parse msg_s with Protocol \" request from \" SourceIP \":\" SourcePort \" to \" FQDN \":\" DestinationPort \". Url:\" Url \". Action: \" Action \". Rule Collection:\" RuleCollection \". Rule:\" Rule \". Web Category:\" WebCategory\r\n),\r\n(\r\nmaterializedData\r\n| where msg_s !has \"Web Category:\" and msg_s has \". Url\" and msg_s has \". No rule matched\"\r\n| parse msg_s with Protocol \" request from \" SourceIP \":\" SourcePort \" to \" FQDN \":\" DestinationPort \". Url:\" Url \". Action: \" Action \". No rule matched\" *\r\n),\r\n(\r\nmaterializedData\r\n| where msg_s !has \"Web Category:\" and msg_s !has \". Url\" and msg_s has \". No rule matched\"\r\n| parse msg_s with Protocol \" request from \" SourceIP \":\" SourcePort \" to \" FQDN \":\" DestinationPort \". Action: \" Action \". No rule matched\" *\r\n),\r\n(\r\nmaterializedData\r\n| where msg_s has \"Web Category:\" and msg_s !has \". Url\"\r\n| parse msg_s with Protocol \" request from \" SourceIP \":\" SourcePort \" to \" FQDN \":\" DestinationPort \". Action: \" Action \". Rule Collection:\" RuleCollection \". Rule:\" Rule \". Web Category:\" WebCategory\r\n),\r\n(\r\nmaterializedData\r\n| where msg_s !has \"Web Category:\" and msg_s !has \". Url\" and msg_s !has \"Rule Collection\" and msg_s !has \" Reason: \"\r\n| parse msg_s with Protocol \" request from \" SourceIP \":\" SourcePort \" to \" FQDN \":\" DestinationPort \". Action: \" Action \". \" RuleCollection \". \" Rule\r\n),\r\n(\r\nmaterializedData\r\n| where msg_s !has \"Web Category:\" and msg_s !has \". Url\" and msg_s !has \"Rule Collection\" and msg_s !has \"TLS extension was missing\"\r\n| where msg_s has \" Reason:\"\r\n| parse msg_s with Protocol \" request from \" SourceIP \":\" SourcePort \". Action: \" Action \". Reason: \" Rule \".\"\r\n),\r\n(\r\nmaterializedData\r\n| where msg_s !has \"Web Category:\" and msg_s !has \". Url\" and msg_s !has \"TLS extension was missing\" and msg_s !has \"No rule matched\"\r\n| parse msg_s with Protocol \" request from \" SourceIP \":\" SourcePort \" to \" FQDN \":\" DestinationPort \". Action: \" Action \". Rule Collection: \" RuleCollection \". Rule: \" Rule\r\n),\r\n(\r\nmaterializedData\r\n| where msg_s !has \"Web Category:\" and msg_s !has \". Url\" and msg_s !has \"Rule Collection\" and msg_s !has \" Reason: \"\r\n| where msg_s has \"Rule Collection Group\"\r\n| parse msg_s with Protocol \" request from \" SourceIP \":\" SourcePort \" to \" FQDN \":\" DestinationPort \". Action: \" Action \". Policy:\" Policy \". Rule Collection Group:\" RuleCollectionGroup \". Rule Collection: \" RuleCollection \". Rule: \" Rule\r\n)\r\n | make-series Trend = count() default = 0 on bin(TimeGenerated, 1d) from {TimeRange:start} to {TimeRange:end} step {TimeRange:grain} by SourceIP) on SourceIP\r\n | project-away SourceIP1, TimeGenerated\r\n | top 10 by Amount\r\n | sort by Amount\r\n",
"size": 1,
"title": "Unique Source IP addresses, filterable by SelectedSourceIP: Query Time ({$queryTime})",