Install
The binary is named rlg.
Usage
# Default: read JSON records from stdin, emit Logfmt to stdout.
|
# Tail a file and convert to MCP-shaped JSON-RPC notifications.
# Drop everything below ERROR.
|
# Show only records from the `db` component.
|
# Filter by a single attribute (value parsed as JSON).
|
|
# Combine filters and pick an output format.
Supported output formats
clf, cef, elf, w3c, apache, log4j-xml, json,
gelf, logstash, ndjson, mcp, otlp, logfmt, ecs.
Input
For 0.0.9, the CLI accepts the canonical LogFormat::JSON
shape — one record per line. Unparseable lines pass through
verbatim so you can pipe non-rlg log noise through rlg
without losing entries.
Parsers for the other input formats (MCP transport envelope,
OTLP, ECS, GELF, Logstash) are tracked under
crates/rlg-cli/doc/INPUT-FORMATS.md
and land incrementally.
License
Dual-licensed under Apache 2.0 or MIT, at your option.