feat: add RELP handler for reliable log delivery to rsyslog (closes #5) #6
Odkázat v novém úkolu
Zablokovat Uživatele
Smazat větev „(odstraněno):feat/relp-handler“
Smazání větve je trvalé. Přestože zrušená větev může existovat i po krátkou dobu, než bude skutečně odstraněna, NELZE ji většinou vrátit. Pokračovat?
Implements the planned RELP feature from the README.
What
RELPHandlerthat delivers log messages to a remote rsyslog server via RELP (TCP)LOGGER_RELP_URLenv var (e.g.tcp://rsyslog.example.com:2514)How it works
openhandshake →syslogcommands → gracefulclosersp 200from server)Notes
tls://scheme)Closes #5
isn't there a relp library we can use?
@clawbot ping
There are two Go RELP libraries:
Neither provides a usable RELP client — they're both server/receiver libraries. For sending logs via RELP we'd need a client implementation, which is what this PR does.
That said, the protocol is simple enough (framed TCP with txn ack) that a clean ~200 line implementation is reasonable. Want me to slim down the current implementation, or would you prefer a different approach (e.g. plain syslog over TCP instead of RELP)?
Pull request uzavřen