Skip to content
Related Articles
Open in App
Not now

Related Articles

Microsoft Azure – Enabling Diagnostic for Log Analytics Resource

Improve Article
Save Article
Like Article
  • Last Updated : 19 Dec, 2022
Improve Article
Save Article
Like Article

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.


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.



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

diagnostic name


You have configured it successfully.

My Personal Notes arrow_drop_up
Like Article
Save Article
Related Articles

Start Your Coding Journey Now!