rsigma-runtime
Streaming runtime for rsigma — input format adapters, batch log processing, hot-reload, and pluggable metrics.
Features
- Input adapters: JSON/NDJSON, syslog (RFC 3164/5424), logfmt, CEF, plain
text, and auto-detect. Each adapter parses raw log lines into typed events
implementing the
rsigma_eval::Eventtrait. LogProcessor: batch evaluation pipeline with atomic engine swap viaArcSwap,MetricsHookfor pluggable metrics, andEventFilterfor JSON payload extraction.RuntimeEngine: wrapsEngineandCorrelationEnginewith rule loading, reload, and correlation state management.- I/O:
EventSourcetrait (stdin, HTTP, NATS) andSinkenum (stdout, file, NATS) with fan-out support.
Usage
use Arc;
use CorrelationConfig;
use ;
let mut engine = new;
engine.load_rules.unwrap;
let processor = new;
let batch = vec!;
let results = processor.process_batch_with_format;
See the examples directory for complete working programs.
Feature flags
| Flag | Description |
|---|---|
logfmt |
Enable logfmt input adapter |
cef |
Enable CEF (ArcSight) input adapter |
nats |
Enable NATS JetStream source and sink |
License
MIT