Log Parse
v0.1.0Added Sep 26, 2026Sample dataParses syslog (RFC 3164 / 5424) and common web server access logs into structured records.
cargo install kura-rs
kura add log-parseCopies 3 source files into your project. You own the code from then on.
If another tool already installs a kura command, run cargo install kura-rs --bin kura-rs and use kura-rs add instead.
use crate::parts::log_parse::{parse_line, Format};
for line in reader.lines() {
let record = parse_line(Format::Rfc5424, &line?)?;
println!("{} {}", record.host, record.message);
}Verification
Sample dataChecked against re 3.12 (Python) using golden files: the same inputs go to both implementations and the outputs are compared.
These numbers are placeholders. They have not been measured yet and must not be read as real results. This part is marked "sample": true in its registry file.
Benchmarks
Sample datakura-rs (Rust) against re across input sizes. Faster at every measured input size, up to 20× faster.
These numbers are placeholders. They have not been measured yet and must not be read as real results. This part is marked "sample": true in its registry file.
Show data table
| Input size | kura-rs (Rust) | re | Speedup |
|---|---|---|---|
| 100 | 0.03 ms | 0.4 ms | 13× |
| 1,000 | 0.21 ms | 3.9 ms | 19× |
| 10,000 | 2 ms | 39 ms | 20× |
| 100,000 | 20 ms | 395 ms | 20× |
| 1,000,000 | 196 ms | 3.96 s | 20× |
Files
- parts/log_parse/mod.rs
- parts/log_parse/syslog.rs
- parts/log_parse/access.rs