Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Logback TCP syslog conforming RFC 5424

I'm trying, with logback, to send logging messages in a remote syslog, using TCP, and conforming to RFC 5424.

As far as I understand, logback default's syslog appender only handles UDP. So far I've found a logback-syslog4j library on github which handles TCP. But it doesn't seem configurable enough to send RFC 5424 compliant messages.

Is there a configuration / a library I overlooked, or should I code my own implementation?

like image 870
gturri Avatar asked Jun 03 '15 07:06

gturri


1 Answers

After a few days of research, my best conclusion is that I should use log4j 2 instead.

Indeed, for the two features I was looking for (TCP and RFC 5424), a patch has already been proposed... 6 years ago! But it has never been integrated into master. (also, I tried to gather more info on the dev mailing list, but never get any reply yet.)

On the other hand, log4j 2 already has those features; and as far as I can see, their community seems very reactive.

like image 81
gturri Avatar answered Oct 07 '22 20:10

gturri