Traffic Analysis Filter Logs by Individual IP

Rahul 276 Reputation points
2022-05-27T10:47:53.483+00:00

Hello,

I'm looking a way to filter out Traffic Analysis Logs with Individual IP by allow and Blocked.

I have Azure VM with enabled NSG Flow Logs. Need to see which Individual IP hits my Azure VM to 443(HTTPS) with Timestamp,Location and whether it's Blocked or Allowed or not?

Currently it shows me only totalblocked IP count and Total Allow IP count.

I hope this make sense for you

Thanks,

Ronit

Azure Traffic Manager
Azure Traffic Manager
An Azure service that is used to route incoming network traffic for high performance and availability.
110 questions
Azure Virtual Network
Azure Virtual Network
An Azure networking service that is used to provision private networks and optionally to connect to on-premises datacenters.
2,164 questions
Azure Network Watcher
Azure Network Watcher
An Azure service that is used to monitor, diagnose, and gain insights into network performance and health.
159 questions
0 comments No comments
{count} votes

Accepted answer
  1. Stanislav Zhelyazkov 21,336 Reputation points MVP
    2022-05-27T12:27:34.657+00:00

    Hi,
    I believe a Kusto query like this should serve your purpose when you run it on your Log Analytics workspace

    AzureNetworkAnalytics_CL  
    | where SubType_s == "FlowLog"  
    | where FlowDirection_s == "I"  
    | where VM2_s == "<resource group name>/<vm name>"  
    | where DestPort_d == 443  
    | extend AllowedBlocked = iff(AllowedInFlows_d > 0, 'Allowed', iff(DeniedInFlows_d >0, 'Blocked', 'Unknown') )  
      
    

    You either have to choose time range from UI or add it within the query. You will also have to fill in the details of your VM within the query. Column Country_s will give you the location. Column L7Protocol_s will give you the protocol used. You can find the whole schema for Traffic Analysis documented here in case you need further information that is available within it. I have made it easier for you to see if a traffic flow is allowed or blocked.

    Please "Accept the answer" if the information helped you. This will help us and others in the community as well.

    3 people found this answer helpful.

0 additional answers

Sort by: Most helpful