How to collect telemetry from Azure Linux VM

Deshpande Amit Sudhir 20 Reputation points

Looking for recommendation to collect & analyze linux logs with AMA or log analytics

Azure Monitor
Azure Monitor
An Azure service that is used to collect, analyze, and act on telemetry data from Azure and on-premises environments.
2,095 questions
Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
5,296 questions
{count} votes

Accepted answer
  1. AnuragSingh-MSFT 13,081 Reputation points

    @Deshpande Amit Sudhir , Thank you for the question.

    As mentioned by Sam in the answer, you could use the "Log Analytics Extension" to install the Log Analytics agent on Linux VMs. However, note that "the Log Analytics agent is on a deprecation path and won't be supported after August 31, 2024". For more details, see Log Analytics agent overview.

    Therefore, I would recommend using "Azure Monitor Agent". It is easy to configure/maintain for Azure as well as non-Azure VM (On Prem or other cloud hosted). The logs and metrics from both agents (LA and AMA) is stored in Log Analytics workspace therefore, you can use similar workflow to query/analyze the data. More details about installation and data collection can be seen in the links below:

    Hope this helps.

    If the answer did not help, please add more context/follow-up question for it, and we will help you out. Else, if the answer helped, please click Accept answer so that it can help others in the community looking for help on similar topics.

    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. Sam Cogan 7,892 Reputation points MVP

    You can install the Log Analytics extension for Linux VMs to collect data from these VMs into Log Analytics.

    0 comments No comments