Crates.io | syslog_rfc3164 |
lib.rs | syslog_rfc3164 |
version | 0.1.0 |
source | src |
created_at | 2017-12-26 13:48:12.55716 |
updated_at | 2017-12-26 13:48:12.55716 |
description | Parser for RFC3164 (IETF-format) syslog messages |
homepage | https://github.com/tureus/rust-syslog-rfc3164 |
repository | https://github.com/tureus/rust-syslog-rfc3164 |
max_upload_size | |
id | 44451 |
size | 29,964 |
This module implements an RFC 3164 IETF Syslog Protocol parser in Rust. The code is a modified fork of the Roguelazer's more complex 5424 parser.
This tool supports serializing the parsed messages using serde.
On a recent system1, a release build takes approximately 8µs to parse an average message and approximately 300ns to parse the smallest legal message. Debug timings are a bit worse -- about 60µs for an average message and about 8µs for the minimal message. A single-threaded Syslog server should be able to parse at least 100,000 messages/s, as long as you run a separate thread for the parser.