Wednesday, 10 February 2016

How to increase the log retention in Orchestrator Server ( server.log)

When you are debugging the Orchestrator related issues in mid/large deployments , it is expected that the server.log file rotates rapidly. 
In this case we need to increase the log file size and the rotation interval. Below are the steps to make changes to the config file to capture large number of files for troubleshooting. 
Config File Location : 
Appliance deployment: /etc/vco/app-server/log4j.xml
Windows deployment: <install_Location>\app-server\conf\log4j.xml

1. Edit the file log4j.xml
2. Locate the <appender class="org.apache.log4j.RollingFileAppender" name="FILE"> section
3. Increase the size of the log file to 10 MB  <param name="MaxFileSize" value="10240KB"/>  
4. Increase the  number files to be retained before rotation <param name="MaxBackupIndex" value="5"/>

Cheers :-)