Symptoms:
• Under some circumstances, the rsyslog service fails to read from the /etc/logrotate.d/vmware-syslog.lr file following a syslog collector change.
/var/log/vmware/*/*-syslog.log
/var/log/vmware/esx/*/*-syslog.log
{
su root root
nodateext
rotate 15
missingok
notifempty
size 5M
compress
create 640 root root
sharedscripts
postrotate
/usr/bin/systemctl reload syslog.service > /dev/null
endscript
}
4. You can change the amount of files being saved (rotate x) and the size (size xM). To calculate the amount of space the logs will take multiply <Number of Hosts>*rotate*size.
5. Restart the syslog service:
systemctl restart rsyslog