Installing Azure monitor agent on Linux containers

Luke Rosser 60 Reputation points
2024-08-06T09:45:10.8166667+00:00

Is it possible to install the Azure monitor agent on a Linux container? I'd like to collect data from log files using a data collection rule outlined here: https://zcusa.951200.xyz/en-us/azure/azure-monitor/agents/data-collection-log-text?tabs=portal

However, looking at the install options only VMs and Windows are mentioned: https://zcusa.951200.xyz/en-us/azure/azure-monitor/agents/azure-monitor-agent-manage?tabs=azure-portal

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,285 questions
Azure Container Apps
Azure Container Apps
An Azure service that provides a general-purpose, serverless container platform.
431 questions
0 comments No comments
{count} votes

Accepted answer
  1. Stanislav Zhelyazkov 24,376 Reputation points MVP
    2024-08-07T06:14:24.1+00:00

    Hi,

    Container Insights installs special Azure Monitor agent version for containers but there is no option to collect custom logs with it. Assuming that this is some application that is generating those logs Microsoft recommends to use Application Insights to log application logs. Other option is to send those send those logs to stdout/stderr which are picked by container Insights:

    Application logs

    Container insights sends stdout/stderr logs to a Log Analytics workspace. See Resource logs for a description of the different logs and Kubernetes Services for a list of the tables each is sent to.
    

    Please "Accept the answer" if the information helped you. This will help us and others in the community as well.

    1 person found this answer helpful.
    0 comments No comments

0 additional answers

Sort by: Most helpful

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.