Log Analytics Workspace Data Not Showing Correctly from VMs

SwathiDhanwada-MSFT 18,766 Reputation points
2024-08-01T06:15:01.08+00:00

Why are the logs from my virtual machines (VMs) not appearing correctly in the Log Analytics Workspace, and how can I resolve this issue?

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,271 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. SwathiDhanwada-MSFT 18,766 Reputation points
    2024-08-01T06:16:01.3666667+00:00

    The issue arises because the logs from virtual machines (VMs) are being filtered using the "Computer name" field, which in some instances does not match the actual Azure resource name. This discrepancy occurs because the "Computer name" is the hostname of the guest OS, which may differ from the Azure resource name based on your implementation.

    To resolve this issue, you should filter the logs using the "resource id/name" instead of the "Computer name." By doing this, you can accurately match and find the logs corresponding to each VM in the Log Analytics Workspace. Additionally, to verify if the logs are being sent correctly, you can check the Heartbeat table for AMA agents.

    For more detailed guidance, please refer to Azure Monitor log analytics sample queries

    Please do not forget to "up-vote" wherever the information provided helps you, as this can be beneficial to other community members.

    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.