Forum Discussion
venu15
Apr 06, 2023Copper Contributor
Kusto Query for troubleshooting the Network Security Group
Hi Team, i need some help on Kusto Query for troubleshooting the Network Security Group connectivity between source IP and Destination IP, can someone please help in Kusto Query to check the ...
- Apr 06, 2023
venu15 Please try this as an example to build on
AzureNetworkAnalytics_CL | where FlowStatus_s != "A" // Allowed / D=Denied | extend DstIpAddr = iff(isnotempty(DestIP_s), DestIP_s, split(DestPublicIPs_s, '|')[0]), SrcIpAddr = iff(isnotempty(SrcIP_s), SrcIP_s, split(SrcPublicIPs_s, '|')[0]) | where SrcIpAddr == "10.226.16.165" and DstIpAddr == "159.123.12.3"
Clive_Watson
Apr 06, 2023Bronze Contributor
venu15 Please try this as an example to build on
AzureNetworkAnalytics_CL
| where FlowStatus_s != "A" // Allowed / D=Denied
| extend
DstIpAddr = iff(isnotempty(DestIP_s),
DestIP_s,
split(DestPublicIPs_s, '|')[0]),
SrcIpAddr = iff(isnotempty(SrcIP_s),
SrcIP_s,
split(SrcPublicIPs_s, '|')[0])
| where SrcIpAddr == "10.226.16.165" and DstIpAddr == "159.123.12.3"
Clive_Watson
Apr 06, 2023Bronze Contributor
Sorry line #2 should have been:
| where FlowStatus_s == "A"
| where FlowStatus_s == "A"