NSG log analytics

Vinoth Kaliaperumal 386 Reputation points
2023-11-08T04:59:25.2866667+00:00

Hi Team,

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

Thanks.

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

1 answer

Sort by: Most helpful
  1. KapilAnanth-MSFT 47,046 Reputation points Microsoft Employee
    2023-11-08T05:25:11.4133333+00:00

    @Vinoth Kaliaperumal

    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.

    Thanks,

    Kapil


    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

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.