-
Notifications
You must be signed in to change notification settings - Fork 125
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
(r)syslog onramp / preprocessor #12
Comments
|
As this issue is open for lfx mentorship are there any tasks that need to be done during application period? I'm interested in working on this issue. |
|
Hi @glitzflitz thanks for your interest! We don't require anything outside of the LFX-Mentorship process I'll share here what we shared on your discord that should answer all questions :) if not feel free to pop by we're happy to help anyone to go through the process. |
|
@Licenser Thanks! |
|
@murex971 tagging you here can you give a quick reply so we can assign you the issue :) |
|
@Licenser sure :) |
|
Thank you! And done :) congratulations to being the proud owner of this issue now ;) |
|
Thank you @murex971 for working on this! |
Enable Tremor to receive and send Syslog Protocol Messages (https://tools.ietf.org/html/rfc5424) , supporting as much syslog implementations as possible that might deviate from the standard.
In the wild we have different syslog protocols being used, the standard IETF format and the old BSD format. So ideally we should support both.
Receiving Syslog Messages
via UDP
Syslog messages are usually sent via UDP where 1 UDP packet contains 1 syslog message. We already support receiving data via UDP with our UDP onramp. We need a way to turn the packet data we receive into a structured
Value. For this, we have codecs. A syslog codec should be able to handle both syslog message formats, or we write two different codecs, one for each format.via TCP/TLS
The story for supporting syslog over TLS/TCP is a bit more involved. We currently do not support TLS over our TCP onramp, so this needs to be added. This is a major milestone towards full syslog support.
Given we have TLS, in order to support syslog messages over TCP, we need to support the RFC 5425 transport, that contains a textual length prefix before each message. This could be handled with a Preprocessor similar to the length-prefixed preprocessor.
Sending Syslog Messages
via UDP
For sending syslog messages, we need to turn structured data in an Event (
Value) into the thesyslogprotocol format.via TCP/TLS
For sending messages over TCP/TLS, we also need to add the textual length-prefix used in RFC 5425. Tremor already supports sending data via UDP and TCP via offramps.
The TCP offramp needs to get TLS support for supporting sending syslog messages via TCP/TLS.
Checklist
Phase 1 - receive syslog via UDP
Phase 2 - syslog via TCP/TLS
Phase 3 - TLS support for TCP
Reference
The text was updated successfully, but these errors were encountered: