You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4j-user@logging.apache.org by Steve Curic <cu...@hotmail.com> on 2003/02/07 21:44:45 UTC
Syslog
Hello,
Could someone please help with a SyslogAppender problem I am having. I am
sending log statments to a remote unix server and they are not appearing for
some reason. My configuration looks like this:
<appender name="SYS" class="org.apache.log4j.net.SyslogAppender">
<param name="Facility" value="SYSLOG"/>
<param name="FacilityPrinting" value="true"/>
<param name="SyslogHost" value="111.222.3.44"/>
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="%d| %c| %X{to} | %X{from} |
%X{service} | %X{action} |%n"/>
</layout>
</appender>
The application does not throw any errors when it logs, however, when I
check the unix box at var/log/syslog, it is empty.
Is this the proper location to check? Do I need to configure anything on the
unix side to recieve the log statements? Do I need to configure the JVM to
deliver to syslog properly? Am I missing something?
Any help would be great.
Steve
_________________________________________________________________
The new MSN 8: smart spam protection and 2 months FREE*
http://join.msn.com/?page=features/junkmail
---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: log4j-user-help@jakarta.apache.org
Re: Syslog
Posted by "Clifton, Doug" <do...@bankofamerica.com>.
Steve,
It was a long time ago when I last tried it, but as I remember I had
to have the syslogd daemon started with a "-r" parm on linux only. The
syslogd daemon on solaris 2.8 took the input without any changes as I
remember. Don't know if this helps, but thought I would share it just
in case.
Doug C.
Steve Curic wrote:
> Hello,
>
> Could someone please help with a SyslogAppender problem I am having. I
> am sending log statments to a remote unix server and they are not
> appearing for some reason. My configuration looks like this:
>
> <appender name="SYS" class="org.apache.log4j.net.SyslogAppender">
> <param name="Facility" value="SYSLOG"/>
> <param name="FacilityPrinting" value="true"/>
> <param name="SyslogHost" value="111.222.3.44"/>
> <layout class="org.apache.log4j.PatternLayout">
> <param name="ConversionPattern" value="%d| %c| %X{to} | %X{from} |
> %X{service} | %X{action} |%n"/>
> </layout>
> </appender>
>
> The application does not throw any errors when it logs, however, when I
> check the unix box at var/log/syslog, it is empty.
>
> Is this the proper location to check? Do I need to configure anything on
> the unix side to recieve the log statements? Do I need to configure the
> JVM to deliver to syslog properly? Am I missing something?
>
> Any help would be great.
>
> Steve
>
> _________________________________________________________________
> The new MSN 8: smart spam protection and 2 months FREE*
> http://join.msn.com/?page=features/junkmail
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: log4j-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: log4j-user-help@jakarta.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: log4j-user-help@jakarta.apache.org