Skip to content

Enable NSG Flow Logs


  1. Go to Resource Groups section in Azure portal
  2. Click on create button.
  3. Select the subscription and provide a name for this new resource group.
  4. Select a region. (example: (US) East US)
  5. Click "Review + create" button.
  6. Go to storage accounts section.
  7. Click on Create button.
  8. Select subscription and resource group that was just created.
  9. Select the same region as the resource group.
  10. Provide a name for the storage account.
  11. Redundancy CANNOT be locally-redundant storage(LRS)
  12. Click "Review + create" button. This will create a storage account where nsg flow log will be stored.
  13. Go to subscription section and find your subscription.
  14. Navigate to resource providers.
  15. Ensure that microsoft.insights and Microsoft.EventGrid providers are registered. If they are not registered, click on Register button.
  16. Go to Network Watcher section.
  17. Click on Add and add the regions that you want nsg flow logs to be enabled.
  18. Go to Network Watcher -> NSG flow logs.
  19. Create flow logs for the NSG where you want to enable NSG flow log. Provide the storage account created above and retention days as 30.
  20. Navigate to the storage account created and click on Events.
  21. Click on Event Subscription
  22. Provide a name for this event subscription.
  23. Select the resource group that was created above.
  24. Provide a System Topic Name.
  25. For Filter to Event Types, default is "Blob Created" and "Blob Deleted".
  26. For Endpoint Type, select "Web Hook".
  27. Click on the "Select an endpoint" link.
  28. Subscriber Endpoint is<tenant_name>/azure. Tenant name is assigned by Valtix. You can find tenant name by clicking on the username in Valtix Controller.