Maybe this is useful:

http://www.rsyslog.com/tcp-syslog-rfc5424-log4j-appender/

Rainer

> -----Original Message-----
> From: [email protected] [mailto:rsyslog-
> [email protected]] On Behalf Of Florian Crouzat
> Sent: Friday, May 25, 2012 4:51 PM
> To: [email protected]
> Subject: Re: [rsyslog] Need Help .... Exception traces are missed out!!
> 
> Le 25/05/2012 14:15, Sanjeev Reddy a écrit :
> > Hello Everyone,
> >
> > I'm facing an issue using rsyslog with log4j (SysLog4jAppender) and posted
> > that on the forum. Can someone help me out on this.
> >
> > http://kb.monitorware.com/need-help-exception-traces-are-missed-out-
> t11540.html
> >
> > Thank you for your time !!
> >
> 
> I have been facing the same issue.
> AFAIK, there is absolutely no way to force all lines of a stracktrace to
> be treated by your Log4J Layout as you mentionned.
> 
> The only workaround I found was to extract the "timestamp hostname app:"
> part from log4j PatternLayout and to hard-code it into my rsyslog
> template so that any log line of any kind produced by Java will have the
> correct layout.
> I discuss this in a blogpost[1].
> 
> [1]
> http://floriancrouzat.net/2012/05/ossec-jboss-log4j-and-syslog-are-on-a-
> plane/
> 
> --
> Cheers,
> Florian Crouzat
> _______________________________________________
> rsyslog mailing list
> http://lists.adiscon.net/mailman/listinfo/rsyslog
> http://www.rsyslog.com/professional-services/
> What's up with rsyslog? Follow https://twitter.com/rgerhards
_______________________________________________
rsyslog mailing list
http://lists.adiscon.net/mailman/listinfo/rsyslog
http://www.rsyslog.com/professional-services/
What's up with rsyslog? Follow https://twitter.com/rgerhards

Reply via email to