Hello, @Atanu Gupta !
How do I prevent the OmsAgent logs from taking up local disk space on my VM?
You may notice that
omsconfig.log are taking up space on your VM. While there is currently no way to disable these logs, you are able to change the size of the logs using the
Additionally, you can consider using the new Azure Monitor Agent (AMA), which doesn't run into this issue. The legacy Log Analytics agent (OMS) will be deprecated by August 2024.
This GitHub issue goes into more detail on
omsconfig's logrotate setting like below:
jumping@jumping-ub14:/root$ cat /etc/logrotate.d/omsconfig