This documentation is for WSO2 Enterprise Integrator version 6.1.1 . View documentation for the latest release in the 6.x.x family and the latest release in the 7.x.x family.

All docs This doc

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. Add the following parameters to the log4j.properties file (stored in the <EI_HOME>/conf/ directory):

    Code Block
    # correlation logs
        log4j.logger.correlation=INFO, CORRELATION
        log4j.additivity.correlation=false
        # Appender config for correlation logs
        log4j.appender.CORRELATION=org.apache.log4j.RollingFileAppender
        log4j.appender.CORRELATION.File=${carbon.home}/repository/logs/${instance.log}/correlation.log
        log4j.appender.CORRELATION.MaxFileSize=10MB
        log4j.appender.CORRELATION.MaxBackupIndex=10
        log4j.appender.CORRELATION.layout=org.apache.log4j.PatternLayout
        log4j.appender.CORRELATION.Threshold=INFO
        log4j.appender.CORRELATION.layout.ConversionPattern=%d{yyyy-MM-dd HH:mm:ss,SSS}|%X{Correlation-ID}|%t|%m%n
  2. Note that the maximum file size of the correlation log is set to 10MB in the above configuration. That is, when the size of the file exceeds 10MB, a new log file is created. If required, you can change this file size.

  3. If required, you can change the default HTTP header (which is 'activity_id') that is used to carry the correlation ID by adding the following property to the passthru-http.properties file (stored in the <EI_HOME>/conf/ directory). Replace <correlation_id> with a value of your choice.

    Code Block
    correlation_header_name=<correlation_id>

...