Hi,

Since a couple weeks I started configuring jboss to log through syslog using a syslog log4j appender. Everything is fine except I sometimes miss a part of the very first line of some stacktraces.

My configuration is the following, jboss -> log4j -> rsyslog -> server.log.
I created a raw template for comparison.

$template jbossFormat,"%timegenerated% host.example.com jboss: %msg%\n"
$template jbossFormatRAW,"%rawmsg%\n"
local2.*        /var/log/jboss/server.log;jbossFormat
local2.*        /var/log/jboss/raw.log;jbossFormatRAW
local2.*        ~

As you can see, one use %msg%, the other %rawmsg%.
My problem: there is a difference between the "message" part of the two template, see http://pastie.org/4085022

Line 2 of the jbossFormat template is missing the "com.foo.bar.baz.exception.InvalidSessionException:" part.

It seems jboss and log4j are working fine since it's present in %rawmsg% so why it doesn't reach %msg% ?

Thanks in advance.

--
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

Reply via email to