Settings to be verified in Network Configuration Manager (NCM) when syslog file is not getting rotated.
Steps to change the log rotation from default value 7.
NCM 10.1.x
Open /etc/logrotate.d/eventlogrotate
#Copyright © [2019] VMware, Inc. All rights reserved. This product is protected by copyright and intellectual property laws in the United States and other countries as well as by international treaties. VMware products are covered by one or more patents listed at http://www.vmware.com/go/patents.
#
# Version ==version==.==build==
# $Date: 2009-02-23 20:51:54 $
# $RCSfile: eventlogrotate,v $
# $Revision: 1.6 $
/opt/smarts-ncm/logs/ssh.log{
su ncm voyence
rotate 7
daily
}
/opt/smarts-ncm/cm/Syslog {
su ncm voyence
rotate 7
daily
size=100k
sharedscripts
postrotate
if ps -ae | grep rsyslogd > /dev/null
then
/usr/bin/killall -HUP rsyslogd
fi
if ps -ae | grep [^r]syslogd > /dev/null
then
/usr/bin/killall -HUP syslogd
fi
endscript
}
systemctl reload crond
systemctl restart crond
vi /etc/logrotate.d/eventlogrotate