Skip to main content

Crate bunny_syslog_receiver

Crate bunny_syslog_receiver 

Source
Expand description

Embedded RFC 5424 / 3164 syslog TCP receiver used by hoppy container logs to capture log-forwarding traffic from Bunny Magic Containers.

Two layers:

  • receiver — a tokio TCP listener that accepts framed syslog messages (RFC 6587 octet-counted or non-transparent LF framing, detected per-connection on the first byte) and forwards parsed LogEvents through an mpsc channel.
  • tunnel — a Tunnel trait + a BoreTunnel implementation that exposes the local listener via the bore CLI.

The crate is transport-only: pretty-printing, redaction, and lifecycle orchestration live in the consuming binary.

Re-exports§

pub use receiver::LocalListener;
pub use receiver::LogEvent;
pub use receiver::Severity;
pub use receiver::run_receiver;
pub use receiver::spawn_receiver;
pub use tunnel::BoreTunnel;
pub use tunnel::NoopTunnel;
pub use tunnel::StaticTunnel;
pub use tunnel::Tunnel;
pub use tunnel::TunnelHandle;

Modules§

framing
Frame extraction for syslog-over-TCP streams.
receiver
TCP syslog receiver.
tunnel
Tunnel abstraction for exposing the local syslog listener to a public endpoint that Bunny’s log-forwarding service can reach.