Linux VM OmsAgent logs
Question
Tuesday, May 7, 2019 10:25 AM
Hi All,
I need to disable writing logs to /var/opt/microsoft/omsconfig/omsconfigdetailed.log file.
I have checked the log_level status in
/etc/opt/microsoft/omsagent/1c2e35cc677/conf/omsagent.conf
<match diag.oms diag.oms.**>
type out_oms_diag
log_level info
num_threads 5
and it shows as "info"
Is there any way to disable omsconfigdetailed.log?
Many thanks,
Evros
All replies (2)
Thursday, May 9, 2019 8:35 AM
We are checking internally with concerned team. We will update you soon.
Monday, May 13, 2019 10:54 AM
It cannot be disabled or verbosity cannot be reduced. The only solution is to reduce the size of logs and rotation count at /opt/microsoft/omsconfig/etc/logrotate.conf
/var/opt/microsoft/omsconfig/omsconfigdetailed.log {
rotate 5
sharedscripts
size 50M
compress
}