How to Configure a Log Rotation Rule in Mission Control

How to Configure a Log Rotation Rule in Mission Control

AuthorFullName__c
David Shin
articleNumber
000005028
ft:sourceType
Salesforce
FirstPublishedDate
2021-03-29T22:26:38Z
lastModifiedDate
2021-03-15
VersionNumber
6

To configure Mission-Control’s logging rotation, go to the $MISSION_CONTROL_HOME/etc folder and look for the logback.xml file. It has four appenders:

  • Console: Writes the stdout. We recommend that you not change anything here.
  • File-Audit: Creates the audit.log
  • File-Monitoring: Creates the monitoring.log
  • File: – Creates the mission-control.log

Within each appender, you’ll find the <maxFileSize> property, which sets the maximum size per log file. By default, this is set at 10MB.

Additionally, to set limits on the number of logs per request that Mission Control creates, you’ll need to add the following to all but the first appender listed above:

<MinIndex>1</MinIndex>
<MaxIndex>9</MaxIndex>

This will limit each appender to the creation of 9 logs for each file.