NSG log analytics

vinothkaliaperumal-2643 381 Reputation points

Hi Team,

Is there any query to find if any traffic has been flowing through the particular NSG rule.


Azure Network Watcher
Azure Network Watcher
An Azure service that is used to monitor, diagnose, and gain insights into network performance and health.
137 questions
{count} votes

1 answer

Sort by: Most helpful
  1. KapilAnanth-MSFT 27,511 Reputation points Microsoft Employee


    Welcome to the Microsoft Q&A Platform. Thank you for reaching out & I hope you are doing well.

    In case you would like to simulate traffic flow and test what rule is blocking/allowing a traffic (both Inbound and OutBound),

    • You can consider either IP Flow Verify or NSG Diagnostics from Network watcher
    • NSG Diagnostic:
      • User's image
        • If you click on "View Details" - you will arrive at the individual Rule that allowed/blocked the request.
    • IP Flow Verify :
      • User's image
        • This will directly give you the security rule allowing/blocking the request

    However, if you would like to log all the traffic flow

    You should consider using NSG Flow Logs

    This feature only logs the traffic flow.

    To visualize the logs, see Visualize flow logs.

    Kindly let us know if this helps or you need further assistance on this issue.



    Please don’t forget to close the thread by clicking "Accept the answer" wherever the information provided helps you, as this can be beneficial to other community members.

    0 comments No comments