-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
UDP listener for syslog server #9
Comments
maybe … Providing an UDP collector is like providing the possibility to crypt with a raw MD5 : if it's possible then some one will use it stupidly. |
My particular use case is to collect logs from a java application that uses logback, a popular logging framework. Unfortunately the logback syslog appender doesn't support TCP at all so I need to support UDP. I currently use rsyslog to collect logs but it would be nice to be able to collect them with this library. The syslog 5424 does talk about maintaining support for UDP briefly:
https://tools.ietf.org/html/rfc5424 But then again, if you feel like not adding support for it that is alright too... Thanks for the great library, already use it in production to send syslog messages from both linux and windows. |
I know… for 8 years, the RFC recommands that a server SHOULD implement UDP server. the same RFC 5424 says :
the older RFC 3164 says :
Actually lots of people yell against systemd just because systemd truncate the showed log (not the stored one) in paginate mode without any knowledge of thoses historical points. I show you thoses points, because my main concern behind this lib is to gain some reliability improvement in my syslog infrastructure, and TCP is more reliable than UDP, like "logging the full message" is more reliable and provide better audit material than the respect of "truncate because RFC says so". I understand your concern about UDP… and maybe I will implement an UDP collector (without any truncation … except for the 64kb limit of UDP datagram 😅), but not now. I don't know the actual good practices about Java and logging, but is there any "plugin" for Logback ? |
I'm sorry my previous answer may be misinterpreted. I don't judge anyone, I just tried to show the expectation of admins about syslog : logging all the untruncated messages. UDP is lossy transport, so there is alot of packet loss with UDP. |
TCP may have loss. |
There are still plenty of pieces of software that send syslog messages over UDP. It would be nice to be able to use this library to receive those and not rely on other syslog servers.
The text was updated successfully, but these errors were encountered: