Setting up Azure Network Gateway Logging

Published On: 2021-11-08By:

If you’ve ever set up an Azure Network Gateway for Site to Site or Person to Site VPNing you’ve probably wanted to be able to see logging from the gateway. In the Azure portal, you can see a Logs option, but all it does is tell you to set up log analytics and the link that it gives you is … less than helpful.

In order to set up Log Analytics for your Azure Network Gateway (or other Azure resources that don’t have a direct way to configure diagnostics), you need to configure the Azure Monitor. To find the Azure Monitor search for “monitor” in the search bar within the Azure Portal. Once you find Monitor click on the Monitor option.

From here scroll down on the menu and find the settings section. In this section, you’ll find a “Diagnostic Settings” option. Select “Diagnostic Settings”.

This will bring up a screen that includes a subscription selector, a resource group selector, and a resource type selector. Select the subscription that contains the resource, and the page will refresh with the resources in that subscription. If needed filter down the list based on the resource group and resource type. Once you have found the resource you wish to add to Log Analytics, select the resource and another page will open.

On the new page, you’ll see that there are no diagnostic settings defined. Click on the “Add diagnostic settings” link and a new page will open. This new page will allow you to select the Log Analytics workspace that you will send the data to as well as the kind of data that you want to be logged in addition to a same for the settings.

Set the name, the kind of data that you want to send to Log Analytics, and the Log Analytics workspace that you want to send the data to.

Click OK to save the settings, and if needed close the window (it doesn’t always close in my experience). At this point (or in a few minutes) the Logs option on the resource should work correctly and allow you to view the data in Log Analytics related to the resource.

Denny

Contact the Author | Contact DCAC

Leave a Reply

Video

Globally Recognized Expertise

As Microsoft MVP’s and Partners as well as VMware experts, we are summoned by companies all over the world to fine-tune and problem-solve the most difficult architecture, infrastructure and network challenges.

And sometimes we’re asked to share what we did, at events like Microsoft’s PASS Summit 2015.

Awards & Certifications

Microsoft Partner   Denny Cherry & Associates Consulting LLC BBB Business Review    Microsoft MVP    Microsoft Certified Master VMWare vExpert
INC 5000 Award for 2020    American Business Award 2021 Gold    American Business Award 2021 Bronze    FT Americas’ Fastest Growing Companies 2021   INC 5000 Award for 2020    American Business Awards People's Choice    American Business Awards Gold Award    American Business Awards Silver Award
FT Americas’ Fastest Growing Companies 2020       Best Full-Service Cloud Technology Consulting Company       Insights Sccess Award    Technology Headlines Award
Share via
Copy link