https://issues.apache.org/bugzilla/show_bug.cgi?id=54815
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: [email protected]
Reporter: [email protected]
Classification: Unclassified
Hello,
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" />
</layout>
</appender>
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.
Regards
PS : Log4j release : log4j-1.2.16
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]