Changing the Log Retention Options for On-premise Adobe Connect Servers
Issue: By default, the Connect server logs in Adobe Connect version 10.8 will rotate every 15 days. In some cases this value may need to be adjusted for administrative or security or compliance reasons:
Backup and edit \appserv\conf\log4j2.xml Under each log header you may edit the default maximum number for retention from 15 to the number desired:
<DefaultRolloverStrategy fileIndex=”min” min=”1″ max=”15″>
As always in these cases of editing XML files on the Adobe Connect server, save the file and test it for syntax problems by simply opening it in any browser. Cycle the Connect and AMS services to put the new settings into production. If you experience any problems then revert to the backup log4j2.xml file and contact Adobe Connect support.
For Connect versions 8 and 9, the default is 7 days; to change it, save a backup copy of \appserv\conf\log4j.xml and edit the MaxNumberOfDays and MinNumberOfLogs variables as appropriate for each type of log. See the example j4log.xml snippet below. As aforementioned, save the log4j.xml file and test it for syntax problems by simply opening it in any browser. Cycle the Connect and FMS/AMS services to put the new settings into production. If you experience any problems then revert to the backup log4j.xml file and contact Adobe Connect support.
\appserv\conf\log4j.xml
<!– All messages go to debug.log –>
<appender File=””class=”com.macromedia.breeze.log4j.DailyRollingAndCleaningFileAppender” name=”DEBUGLOG”>
<param name=”Threshold” value=”INFO”/>
<param name=”File” value=”${application.home}/../../logs/support/debug.log”/>
<param name=”Append” value=”true”/>
<param name=”DatePattern” value=”‘.’yyyy-MM-dd-a”/>
<param name=”MaxNumberOfDays” value=”5“/>
<param name=”MinNumberOfLogs” value=”10“/>
<layout>
<param name=”ConversionPattern” value=”[%d{MM-dd HH:mm:ss}] %.25t (%p) %.2048m%n”/>
</layout>
</appender>
<!– All messages go to api.log –>
<appender File=”” class=”com.macromedia.breeze.log4j.DailyRollingAndCleaningFileAppender” name=”APILOG”>
<param name=”Threshold” value=”INFO”/>
<param name=”File” value=”${application.home}/../../logs/support/api.log”/>
<param name=”Append” value=”true”/>
<param name=”DatePattern” value=”‘.’yyyy-MM-dd-a”/>
<param name=”MaxNumberOfDays” value=”5“/>
<param name=”MinNumberOfLogs” value=”10“/>
<layout class=”org.apache.log4j.PatternLayout”>
<param name=”ConversionPattern” value=”[%d{MM-dd HH:mm:ss}] %.25t %m%n”/>
</layout>
</appender>
Note: For legacy Connect version, 7.x, add and adjust the values of use the following entries in the custom.ini file, save the file and and cycle the services:
ACCESS_LOG_ROTATE_DAYS=0.25
ACCESS_LOG_ROTATE_KEEP=7
LOG_ROTATE_DAYS=0.25
LOG_ROTATE_KEEP=7
ERROR_LOG_ROTATE_DAYS=0.25
ERROR_LOG_ROTATE_KEEP=7
API_LOG_ROTATE_DAYS=0.25
API_LOG_ROTATE_KEEP=7