VM Disk space for Azure Log Analytics Agent

Parveen Singh 1 Reputation point
2020-11-17T19:33:10.503+00:00

Hi
I was looking to see how much (rough) space does a log analytics agent needs on a local machine to store logs.
I have a few Linux VMs with a 30GB OS disk and the Log agent store over 16GB of logs under /var/log/azure. I can definitely go and upgrade the disk but are there any metrics that can identify how much space each extension roughly needs to store its log to plan for the disk upgrade?

Only extension installed right now are:

  1. LinuxDiagnostic | Microsoft.OSTCExtensions.LinuxDiagnostic | 2.*
  2. OmsAgentForLinux | Microsoft.EnterpriseCloud.Monitoring.OmsAgentForLinux | 1.*
  3. SiteRecovery-Linux | Microsoft.Azure.RecoveryServices.SiteRecovery.Linux | 1.*

Thanks

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,247 questions
Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
7,867 questions
{count} votes

1 answer

Sort by: Most helpful
  1. FJcmdk4488 56 Reputation points
    2020-11-18T17:29:35.337+00:00

    You might try to rotate the logs if you aren't seeing them clear on their own. Try this - https://github.com/microsoft/OMS-Agent-for-Linux/blob/master/installer/conf/logrotate.conf

    This will change the logs to incremental and auto rotate them.

    You might also look at this thread for other Azure logs that need rotation - https://github.com/Azure/azure-linux-extensions/issues/618

    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.