Uploaded image for project: 'JS - JobScheduler'
  1. JS - JobScheduler
  2. JS-1880

log4j2 configuration should limit output to scheduler.out log file

    XMLWordPrintable

    Details

      Description

      Current Situation

      • With JS-1869 we updated JobScheduler release 1.13.3 to use the log4j2 framework due to some vulnerabilities in the predecessor log4j framework.
      • During this move the log configuration for the handling of output to the scheduler.out log file was not considered.
      • As a result output similar to what is written to the scheduler.log file is added to scheduler.out. This creates a problem for some users as the scheduler.out log file is growing and can consume some GB disk space. By design the scheduler.out log file is not considered for log rotation. The file is overwritten on restart of the JobScheduler Master only.

      Desired Behavior

      • The scheduler.out file should include log output of warnings and errors only that occur e.g. during start up and that cannot be redirected to other log files

      Workaround

      • Replace the missing log configuration in the file ./lib/log4j2.xml file like this:
        • Insert this configuration towards the end of the file:
          • <Logger name="JobScheduler" level="fatal"/>
        • The end of your log42j2.xml file should look like this:
           
                 …
                   <Logger name="JadeReportLog" additivity="false" level="off">
                      <AppenderRef ref="JadeReportLogAppender" />
                      <AppenderRef ref="JadeReportLogHTMLAppender" />
                  </Logger>
                 <Logger name="JobScheduler" level="fatal"/>
              </Loggers>
          </Configuration>
          
      • Then restart the Master.

        Attachments

          Activity

            People

            • Assignee:
              sp Santiago Aucejo Petzoldt
              Reporter:
              ap Andreas Püschel
              Approver:
              Chanchal Khatri
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: