After log rotation is triggered, the following files keep writing logs but stop forwarding logs due to a syslog issue.
/opt/vmware/var/log/lighttpd/access.log
/opt/vmware/var/log/lighttpd/error.log
/var/log/audit/audit.log
/var/log/vmware/applmgmt-audit/applmgmt-audit.log
Note: This issue may also occur with other logs.
To resolve this issue, adding both options deleteStateOnFileDelete="on" and reopenOnTruncate="on" to /etc/vmware-syslog/vmware-services-*.conf. are the configuration files where the target logs are defined.
/etc/vmware-syslog/vmware-services-*.conf
The following is an example workaround for /opt/vmware/var/log/lighttpd/access.log./opt/vmware/var/log/lighttpd/access.log is defined in /etc/vmware-syslog/vmware-services-applmgmt.conf.
Workaround for /opt/vmware/var/log/lighttpd/access.log
systemctl stop syslog.socket rsyslog.servicecp /etc/vmware-syslog/vmware-services-applmgmt.conf /etc/vmware-syslog/vmware-services-applmgmt.conf.bak/etc/vmware-syslog/vmware-services-applmgmt.conf.Before
#vami-access.loginput(type="imfile"File="/opt/vmware/var/log/lighttpd/access.log"Tag="vami-access"Severity="info"Facility="local0")
After
#vami-access.loginput(type="imfile"File="/opt/vmware/var/log/lighttpd/access.log"Tag="vami-access"Severity="info"deleteStateOnFileDelete="on"reopenOnTruncate="on"Facility="local0")
find /var/log/vmware/rsyslogd/ -name "imfile-state*" | xargs -i rm -f {}rsyslog and syslog.socket service