@@ -266,6 +266,62 @@ Steps :
266
266
- Click "New alert rule" to create the alert
267
267
- Refer to [ log alerts documentation] ( https://docs.microsoft.com/azure/azure-monitor/platform/alerts-log ) to create the alert
268
268
269
+ ## How do I check which VMs are receiving most on-premise traffic
270
+
271
+ AzureNetworkAnalytics_CL
272
+ | where SubType_s == "FlowLog" and FlowType_s == "S2S"
273
+ | where <Scoping condition>
274
+ | mvexpand vm = pack_array(VM1_s, VM2_s) to typeof(string)
275
+ | where isnotempty(vm)
276
+ | extend traffic = AllowedInFlows_d + DeniedInFlows_d + AllowedOutFlows_d + DeniedOutFlows_d // For bytes use: | extend traffic = InboundBytes_d + OutboundBytes_d
277
+ | make-series TotalTraffic = sum(traffic) default = 0 on FlowStartTime_t from datetime(<time>) to datetime(<time>) step 1m by vm
278
+ | render timechart
279
+
280
+ For IPs:
281
+
282
+ AzureNetworkAnalytics_CL
283
+ | where SubType_s == "FlowLog" and FlowType_s == "S2S"
284
+ //| where <Scoping condition>
285
+ | mvexpand IP = pack_array(SrcIP_s, DestIP_s) to typeof(string)
286
+ | where isnotempty(IP)
287
+ | extend traffic = AllowedInFlows_d + DeniedInFlows_d + AllowedOutFlows_d + DeniedOutFlows_d // For bytes use: | extend traffic = InboundBytes_d + OutboundBytes_d
288
+ | make-series TotalTraffic = sum(traffic) default = 0 on FlowStartTime_t from datetime(<time>) to datetime(<time>) step 1m by IP
289
+ | render timechart
290
+
291
+ For time, use format : yyyy-mm-dd 00:00:00
292
+
293
+ ## How do I check standard deviation in traffic recieved by my VMs from on-premise machines
294
+
295
+ AzureNetworkAnalytics_CL
296
+ | where SubType_s == "FlowLog" and FlowType_s == "S2S"
297
+ //| where <Scoping condition>
298
+ | mvexpand vm = pack_array(VM1_s, VM2_s) to typeof(string)
299
+ | where isnotempty(vm)
300
+ | extend traffic = AllowedInFlows_d + DeniedInFlows_d + AllowedOutFlows_d + DeniedOutFlows_d // For bytes use: | extend traffic = InboundBytes_d + OutboundBytes_d
301
+ | summarize deviation = stdev(traffic) by vm
302
+
303
+
304
+ For IPs:
305
+
306
+ AzureNetworkAnalytics_CL
307
+ | where SubType_s == "FlowLog" and FlowType_s == "S2S"
308
+ //| where <Scoping condition>
309
+ | mvexpand IP = pack_array(SrcIP_s, DestIP_s) to typeof(string)
310
+ | where isnotempty(IP)
311
+ | extend traffic = AllowedInFlows_d + DeniedInFlows_d + AllowedOutFlows_d + DeniedOutFlows_d // For bytes use: | extend traffic = InboundBytes_d + OutboundBytes_d
312
+ | summarize deviation = stdev(traffic) by IP
313
+
314
+ ## How do I check which ports are reachable (or bocked) between IP pairs with NSG rules
315
+
316
+ AzureNetworkAnalytics_CL
317
+ | where SubType_s == "FlowLog" and TimeGenerated between (startTime .. endTime)
318
+ | extend sourceIPs = iif(isempty(SrcIP_s), split(SrcPublicIPs_s, " ") , pack_array(SrcIP_s)),
319
+ destIPs = iif(isempty(DestIP_s), split(DestPublicIPs_s," ") , pack_array(DestIP_s))
320
+ | mvexpand SourceIp = sourceIPs to typeof(string)
321
+ | mvexpand DestIp = destIPs to typeof(string)
322
+ | project SourceIp = tostring(split(SourceIp, "|")[0]), DestIp = tostring(split(DestIp, "|")[0]), NSGList_s, NSGRule_s, DestPort_d, L4Protocol_s, FlowStatus_s
323
+ | summarize DestPorts= makeset(DestPort_d) by SourceIp, DestIp, NSGList_s, NSGRule_s, L4Protocol_s, FlowStatus_s
324
+
269
325
## How can I navigate by using the keyboard in the geo map view?
270
326
271
327
The geo map page contains two main sections:
0 commit comments