Changing Log Rotation Options on Connect Servers

Issue: By default, the Connect server logs will rotate every 7 days. In some cases this value may need to be adjusted for the administrative or security or compliance reasons:

For Connect versions 8 and 9 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 always in these cases of editing XML fileson the Connect server, save the file and test it for syntax problems by simply opening it in any browser. Cycle the Connect and FMS 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

 

 

 

Comments are closed.