Hi, let me explain my problem first. I am trying to log Cassandra logs locally and sending them to a remote server.
So far I have tried it: A. Configure log4j to write to a file and configure rsyslog to use imfile for reading it and sending to the remote server. I don't know why but the local file contains much more INFO than in the server. It is not only that rsyslog skipe java stack traces it actually miss some INFO logs. So it doesn't seem to be working. I don't understand much this behaviour honestly. B. Use SyslogAppender. I have already read that this is not working properly. Apparently it works for me but if I get a multi-line logs I get the extraneous logs in the server as my parser just crash with these lines. C.I read http://www.rsyslog.com/tcp-syslog-rfc5424-log4j-appender/ and try to use it but I can't get it working. I have download the SyslogTCPAppender.tar.gz and copied the jar file to the same path where I have all jar files I am using in my Cassandra. Then have modified the log4j to use this appender in that way: log4j.rootLogger=INFO, SYSLOG log4j.appender.SYSLOG=org.apache.log4j.net.SyslogTCPAppender log4j.appender.SYSLOG.syslogHost=localhost log4j.appender.SYSLOG.layout=org.apache.log4j.EnhancedPatternLayout ##log4j.appender.SYSLOG.layout.ConversionPattern=%-4r [%t] %-5p %c %x - %m%n log4j.appender.SYSLOG.layout.ConversionPattern=cassandra: %m %throwable{short} %n log4j.appender.SYSLOG.Header=true log4j.appender.SYSLOG.Facility=LOCAL1 I am basically a bit lost on how to use that Appender on log4j. Am I missing some important step here? Thanks a lot for your help, Xavi _______________________________________________ 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 NOTE WELL: This is a PUBLIC mailing list, posts are ARCHIVED by a myriad of sites beyond our control. PLEASE UNSUBSCRIBE and DO NOT POST if you DON'T LIKE THAT.

