logging-log4j-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ralph Goers (JIRA)" <j...@apache.org>
Subject [jira] [Closed] (LOG4J2-183) SyslogAppender and remote rsyslog server
Date Sun, 28 Apr 2013 06:10:17 GMT

     [ https://issues.apache.org/jira/browse/LOG4J2-183?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Ralph Goers closed LOG4J2-183.
------------------------------

    
> SyslogAppender and remote rsyslog server
> ----------------------------------------
>
>                 Key: LOG4J2-183
>                 URL: https://issues.apache.org/jira/browse/LOG4J2-183
>             Project: Log4j 2
>          Issue Type: Question
>          Components: Appenders
>         Environment: Source logs : Tomcat 6.0.35 on RedHat EL 5.5
> Rsyslog 4.6.2 server : RedHat EL  6.2
>            Reporter: Eric Savidan
>              Labels: hostname, rsyslog, syslogappender
>
> 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

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

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


Mime
View raw message