Le 20/04/2012 07:54, Rainer Gerhards a écrit :
-----Original Message-----
From: [email protected] [mailto:rsyslog-
[email protected]] On Behalf Of Jacob Steinberger
Sent: Thursday, April 19, 2012 7:52 PM
To: rsyslog-users
Subject: Re: [rsyslog] Rsyslog splitting long-lines into multiple
smaller one
Maybe I'm missing something, but your description of "..." followed by
multiple lines of errors, thus split lines and not a single line, is
standard for java logging. Are you sure what you're seeing isn't just
the expected output from java?
Well, I have a log4j FILE appender that cohabits with the syslog
appender for the same logs. When java issue a long log line, the FILE
appender logs it just fine whereas the syslog appender logs
multiple-lines for it (first one ending with '...').
What makes me think it's not java/log4j but syslog is that all of the
multiple lines except the first one aren't prefixed with my log4j layout
as I explained in my initial post.
The problem is that the syslog appenders are seriously broken. The emit
malformed messages with wrong framing. The end result is what is being
reported here.
As part of a training project, we have hacked together some appender which
worked at least in lab (YMMV). See here:
http://www.rsyslog.com/tcp-syslog-rfc5424-log4j-appender/
I'll see with my dev about that appender, and wether or not we can have
such a thing in production, as I assume it's not maintained and never
updated ? Not sure other appenders are though.
Thanks.
--
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