Log4j Properties not being applied properly

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: Low
    • 8.6.1, 8.5.3, 8.3.4, 8.4.4
    • Affects Version/s: 8.5.0, 8.6.0, 8.4.1, 8.4.2, 8.5.1, 8.5.2, 8.3.3, 8.4.3
    • Component/s: Other
    • 10
    • Severity 2 - Major
    • 50

      Issue Summary

      Confluence application logs atlassian-confluence.log are rolling over at:

      • 10 MB
      • Retaining a maximum of atlassian-confluence.log.1

      This is reproducible on Data Center: Yes

      Steps to Reproduce

      1. Install an affected Confluence version
      2. Perform an operation with high logging activity
        • e.g. enable org.apache.http
      3. Continually reload the Confluence Administration » Manage Apps page

      Expected Results

      The log files will abide by the log4.properties configuration, e.g: default settings are:

      • Roll over at 20480KB
      • Retain up to 5 files

      Actual Results

      • Only two files are retained, atlassian-confluence.log.1 and atlassian-confluence.log
      • Each file is rolling at a maximum of 10MB

      Workaround

      1. Edit <confluence-install>/confluence/WEB-INF/classes/log4j.properties
        • Comment out the com.atlassian.analytics.client and burstFilterAppender related lines (located at the very bottom of the file) by adding a leading # character as such:
          # Appender that burst limits log messages
          #log4j.appender.burstFilterAppender=com.atlassian.confluence.logging.ConfluenceHomeLogAppender
          #log4j.appender.burstFilterAppender.Threshold=ALL
          #log4j.appender.burstFilterAppender.layout=com.atlassian.confluence.util.PatternLayoutWithContext
          #log4j.appender.burstFilterAppender.layout.ConversionPattern=%d %p [%t] [%c{4}] %M %m%n
          #log4j.appender.burstFilterAppender.filter.1=com.atlassian.confluence.impl.logging.filter.BurstFilter
          #log4j.appender.burstFilterAppender.filter.1.Level=WARN
          #log4j.appender.burstFilterAppender.filter.1.Rate=0.5
          #log4j.appender.burstFilterAppender.filter.1.MaxBurst=5
          
          #log4j.logger.com.atlassian.analytics.client.listener.ProductEventListener=WARN, burstFilterAppender
          #log4j.additivity.com.atlassian.analytics.client.listener.ProductEventListener=false
          
      2. Restart the Confluence instance for the change to take effect

      If you run Confluence in a cluster, make sure you apply the above changes on all of your nodes (one at a time).

            Assignee:
            Ragan Martinez
            Reporter:
            Eric L
            Votes:
            4 Vote for this issue
            Watchers:
            14 Start watching this issue

              Created:
              Updated:
              Resolved: