**Please note in doing this change it will require a restart of all the services (systemctl restart vcmaster) on the Application Server. Please cancel or stop all jobs before making the changes.**
1. Log into the CLI of the Application Server with 'root' access.
2. Run the below to set environmental variable:
source /etc/voyence.conf
3. Make a backup copy of the log4j.xml file as below:
cp $VOYENCE_HOME/cm/daemon/conf/log4j.xml $VOYENCE_HOME/cm/daemon/conf/bkup_log4j.xml
4. Edit the file:
vi $VOYENCE_HOME/cm/daemon/conf/log4j.xml
5. Search for the following section:
<appender name="FILE" class="org.apache.log4j.RollingFileAppender">
<param name="File" value="$VOYENCE_HOME/logs/daemon.log"/>
<param name="Append" value="true"/>
<param name="MaxBackupIndex" value="10"/>
6. In the line
<param name="MaxBackupIndex" value="10"/> change the
value="10" to
value="5"7. Save and close the file.
8. Perform a service restart:
systemctl restart vcmaster
NOTE: Earlier created daemon logs 6 thru 10 (
daemon.6.log thur daemon.10.log) will still be available under $VOYENCE_HOME/logs directory, but NCM won't be creating or writing to them. Delete them manually to clear up the disk space.