Skip to main content
Sumo Logic

Manage Log Rotation Settings for collector.log

How to manage log4j  log rotation settings for collector.log.

The collector uses the log4j framework. You can tailor log rotation behavior for collector.log by editing the log4j.xml file in the collector’s /config directory.

The default settings in the rolling file appender section for collector.log are: 

<param name="MaxFileSize" value="5MB"/>
<param name="MaxBackupIndex" value="10"/>

With the default settings, Sumo will allow 10 rotations of the collector.log file, creating collector.log, collector.log.1, collector.log.2, up to collector.log.9. Logging will rotate when a file reaches 5 MB.

Once 10 rotations have occurred, resulting in total space used of 50 MB, the oldest log file data is dropped.