How to log rotate Jobserver .log files

Talend Version          All versions

Summary

How to fine-tune Jobserver log rollover files.
Additional Versions  
Product Talend Data Integration
Component Jobserver
Problem Description  
Problem root cause  
Solution or Workaround

By default, the jobserver.log is already set up to roll over each time the size reaches 1000KB. This is configured in jobserver-path/agent/log4j.xml.

 

In this log4j.xml file, there is <appender name="A1" ...> where you can edit the default settings (see line in green):

 

<appender name="A1" class="org.apache.log4j.RollingFileAppender">
        <param name="File"   value="jobserver.log" />
        <param name="Append" value="true" />
        <param name="Threshold" value="info" />
        <param name="MaxFileSize" value="1000KB" />
        <param name="MaxBackupIndex" value="100" />
        <layout class="org.apache.log4j.PatternLayout">
    <param name="ConversionPattern" value="%d %-5p %c{1} - %m%n"/>
        </layout>
</appender>
JIRA ticket number  
Version history
Revision #:
4 of 4
Last update:
‎08-23-2017 03:16 PM
Updated by:
 
Contributors
Tags (1)