Troubleshooting missing metrics logs in Azure Log Analytics workspace

Anveshreddy Nimmala 3,545 Reputation points Microsoft Vendor
2024-10-04T07:17:26.6766667+00:00

I cannot find the metrics logs in my Log Analytics workspace despite configuring the diagnostic settings to store all logs. Where should I look to find these logs?

PS - Based on common issues that we have seen from customers and other sources, we are posting these questions to help the Azure community.

Azure Monitor
Azure Monitor
An Azure service that is used to collect, analyze, and act on telemetry data from Azure and on-premises environments.
3,256 questions
{count} votes

1 answer

Sort by: Most helpful
  1. SUNOJ KUMAR YELURU 14,051 Reputation points MVP
    2024-10-04T07:52:49.67+00:00

    Hello @Anveshreddy Nimmala

    To troubleshoot the issue of missing metrics logs in your Azure Log Analytics workspace, follow these steps:

    Step 1: Verify Diagnostic Settings Configuration

    • Ensure that the diagnostic settings are correctly configured to send the desired logs to your Log Analytics workspace.
    • Navigate to the Azure portal, go to the resource for which you want to collect logs, and check the diagnostic settings.
    • Confirm that the correct categories (e.g., Metrics, Activity Logs) are selected and that the destination is set to your Log Analytics workspace.

    Step 2: Check Log Analytics Workspace Configuration

    • Verify that the Log Analytics workspace is properly set up and connected to the resource.
    • Ensure that the workspace is not experiencing any connectivity issues or restrictions that might prevent logs from being ingested.

    Step 3: Review Access and Permissions

    • Check that you have the necessary permissions to view the logs in the Log Analytics workspace.
    • Ensure that the resource sending logs and the Log Analytics workspace are within the same Azure subscription or have appropriate cross-subscription permissions.

    Step 4: Use Azure Monitor Logs

    • Use Azure Monitor Logs to query and search for the logs.
    • Go to the Azure portal, navigate to your Log Analytics workspace, and use the "Logs" section to run queries.
    • Use a query like AzureDiagnostics | where Category == "Metrics" to search for metrics logs.

    Step 5: Check for Delays or Data Retention Issues

    • Be aware that there might be a delay in log ingestion. Wait for some time and check again.
    • Verify the data retention settings in your Log Analytics workspace to ensure logs are not being deleted prematurely.

    If this answers your query, do click Accept Answer and Up-Vote for the same. And, if you have any further query do let us know.

    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.