I forgot to mention that there is a bug that has been open for a long time 
addressing this issue:

https://issues.apache.org/bugzilla/show_bug.cgi?id=46626

I had recently found it and submitted a patch that would add a tag attribute to 
the SyslogAppender class and would append this tag to the header (which is 
printed out for each message). Please weigh in there if this is something that 
is important to you.

-Steven Willis

> -----Original Message-----
> From: [email protected] [mailto:rsyslog-
> [email protected]] On Behalf Of Florian Crouzat
> Sent: Friday, May 25, 2012 10:51 AM
> 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-
> t1
> > 1540.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