logging-log4j-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject [Bug 54815] New: SyslogAppender and remote rsyslog server
Date Mon, 08 Apr 2013 13:34:56 GMT

            Bug ID: 54815
           Summary: SyslogAppender and remote rsyslog server
           Product: Log4j
           Version: 1.2
          Hardware: Other
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Appender
          Assignee: log4j-dev@logging.apache.org
          Reporter: eric.savidan@orange.com
    Classification: Unclassified


I send Tomcat logs to a remote rsyslog server via a SyslogAppender.

My appender configuration is the following :

<appender name="rtAppenderSyslog" class="org.apache.log4j.net.SyslogAppender">
  <param name="SyslogHost" value="xx.xx.xx.xx"/>
  <param name="Facility" value="local3"/>
  <param name="FacilityPrinting" value="true"/>
  <layout class="org.apache.log4j.PatternLayout">
    <param name="ConversionPattern" value="%d{HH:mm:ss,SSS} [%t] %-5p
(%c{5}:%L) - %m%n" />

The rsyslog server receives correctly the Tomcat logs but the rsyslog $hostname
variable contains the IP address of the Tomcat server.

Could you tell me if it's possible to get the Tomcat server hostname instead of
its IP address ?

Thanks in advance for your support.


PS : Log4j release : log4j-1.2.16

You are receiving this mail because:
You are the assignee for the bug.

To unsubscribe, e-mail: log4j-dev-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-dev-help@logging.apache.org

View raw message