Open In App

Microsoft Azure – Enabling Diagnostic for Log Analytics Resource

Improve
Improve
Improve
Like Article
Like
Save Article
Save
Share
Report issue
Report

Pre-requisite:- Azure

Log Analytics Diagnostic settings are used to configure the streaming export of platform logs and metrics for a resource to the selected destination of your choice. Users can create up to five different diagnostic settings on the same resource to send different logs and metrics to select destinations like Log Analytics Workspace, Storage Account, Event Hub, or any third-party solution. Here in this article, we are going to show you the process of enabling diagnostic logs and metrics for Log Analytics Workspace.

Implementation

Step 1: Log in to Azure Portal.

Step 2: Go to Log Analytics Workspace and select your preferred workspace in which you wish to enable the diagnostic logs.

Step 3: Then from the menu scroll to the bottom and search for Monitoring >> Diagnostic Settings.

log analytics workspace

 

Step 4: Now, Click on ‘+ Add Diagnostic setting’ to configure the collection of the following data of Logs and metrics.

add diagnostic

 

Step 5: Here in diagnostic setting specifies a list of categories that you want to configure:

  • Only Audit logs or All Logs
  • Only Metrics 
  • Both Data Logs and Metrics
config diagnostic

 

Step 6: Next select the destination to store the logs.

destination

 

Step 7: Final step click on Save to make the changes. 

diagnostic name

 

You have configured it successfully.


Last Updated : 31 Mar, 2023
Like Article
Save Article
Previous
Next
Share your thoughts in the comments
Similar Reads