Uploaded image for project: 'Log4j 2'
  1. Log4j 2
  2. LOG4J2-2084

appname gets pid attached when logging with syslog appender after upgrade from 2.8.2 to 2.10.0

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Duplicate
    • 2.10.0
    • None
    • Appenders
    • Sender: Java 8, Debian 7.11, rsyslogd 7.6.3
      Syslog server: Ubuntu 14.0, rsyslogd 8.23.0

    Description

      We use the attached configuration in projects with Java8 on Debian 7.11. After upgrading from 2.8.2 to 2.9.1, we notice that the appName field has a number (probably the pid of the process) attached in brackets, i.e. instead of "foo" it's "foo[21063]". Since we have configured rsyslog on the receiving side to create directories with the appName field, this creates a new log directory every time the application is restarted.

      Attachments

        1. log4j2.xml
          3 kB
          Martin Schröder

        Issue Links

          Activity

            People

              Unassigned Unassigned
              oneiros Martin Schröder
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: