Uploaded image for project: 'OpenNMS'
  1. OpenNMS
  2. NMS-4689

Can't disable all log rotation in log4j.properties

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.8.12
    • Fix Version/s: 1.13.0
    • Component/s: Logging
    • Security Level: Default (Default Security Scheme)
    • Labels:
      None

      Description

      After commenting out log4j.appender..MaxFileSize and log4j.appender..MaxBackupIndex, certain files are still rotated, almost like there is a default setting somewhere that overrides log4j.properties:

      root@monitor:/usr/local/rancid/var/logs# grep -i provisiond /etc/opennms/log4j.properties

      1. Provisiond
        log4j.category.Provisiond=DEBUG, PROVISIOND
        log4j.additivity.Provisiond=false
        log4j.appender.PROVISIOND=org.apache.log4j.RollingFileAppender
        #log4j.appender.PROVISIOND.MaxFileSize=50MB
        #log4j.appender.PROVISIOND.MaxBackupIndex=4
        log4j.appender.PROVISIOND.File=/var/log/opennms/daemon/provisiond.log
        log4j.appender.PROVISIOND.layout=org.apache.log4j.PatternLayout
        log4j.appender.PROVISIOND.layout.ConversionPattern=%d %-5p [%t] %c {1}

        : %m%n

      2. ModelImporter - this is deprecated, the model import is now handled by the provisiond
        root@monitor:/usr/local/rancid/var/logs#

      root@monitor:/usr/local/rancid/var/logs# ls -al /var/log/opennms/daemon/provisiond*
      rw-rw-r- 1 root root 10190949 2011-05-15 18:08 /var/log/opennms/daemon/provisiond.log
      rw-rw-r- 1 root root 10487734 2011-05-15 17:28 /var/log/opennms/daemon/provisiond.log.1
      root@monitor:/usr/local/rancid/var/logs#

        Attachments

          Activity

            People

            • Assignee:
              brozow Matt Brozowski
              Reporter:
              jlixfeld Jason Lixfeld
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: