Streaming log parsing that learns new formats on its own, flags unusual sequences with LogBERT, and answers “why did it break?” with an evidence report that cites real log lines.
logpipe takes raw log lines from files, Go agents on your hosts or any OpenTelemetry sender. It parses them on a sub-millisecond hot path, learns templates for lines it has never seen without stopping ingestion, scores per-source sequences with LogBERT, and serves an operator UI, a SQL and visual query layer, an approval-gated “Ask” box and an MCP endpoint for AI assistants.
flowchart LR
subgraph hosts[Your hosts]
A1[logpipe-agent<br/>Go: files, journald,<br/>docker, syslog]
A2[OpenTelemetry<br/>Collector / SDK]
end
A1 -- OTLP/HTTP --> S
A2 -- OTLP/HTTP --> S
subgraph S[logpipe server]
P[Frozen parser<br/>registry vN] -->|FINAL| ST[(Store<br/>memory · ClickHouse · MongoDB)]
P -->|PENDING| ST
P -->|PENDING| Q[[Unresolved queue<br/>memory · Kafka]]
Q --> W[Enrichment worker<br/>shadow Drain → validate →<br/>name keys → alias → vN+1]
W -->|hot-swap| P
W -->|back-fill FINAL| ST
P --> D[Detector<br/>reorder → windows → LogBERT]
D -->|alerts| ST
ST --> ASK[Ask / RCA engine]
end
S --> UI[Operator UI<br/>React]
S --> MCP["/mcp<br/>Claude Code, other MCP clients"]
The main user is an on-call engineer or IoT/platform operator who runs their own services or device fleet. They read logs and SQL fluently and are under time pressure during an outage. They want three things from their logs without hand-writing parsers:
A person stays in charge: templates go live only after review (or through the online learner for traffic that can’t wait), every Ask query can require approval, and an AI assistant over MCP can propose but never apply.
| what | benchmark | result |
|---|---|---|
| Parsing | Loghub-2k, 14 systems, tuned | GA 0.81 macro (DeepParse 0.70) |
| Alias decisions | 28 labelled template pairs, offline rules | 0 false merges, recall 0.6 |
| Anomaly detection | BGL, LogBERT + novelty | F1 0.95 |
| Anomaly detection | HDFS, LogBERT + novelty | F1 0.80 |
| Root cause, synthetic | 19 injected faults on a web shop | evidence recall 1.0, top lead correct 0.95 |
| Root cause, real testbed | RCAEval RE3-OB (30 code-level faults), Claude Code over MCP | AC@1 0.87–0.90 |
| Root cause, real testbed | RCAEval RE3-OB, rules + Gemini | AC@1 0.70, Avg@5 0.81 |
| Hot path | IoT fleet replay | parse p50 32 µs, p99 68 µs |
Methods, caveats and full tables: Benchmarks.
=== “Try it in a browser”
```sh
uv sync --group dev
uv run logpipe demo # synthetic IoT fleet, the whole pipeline live in a page
```
=== “Run the server”
```sh
cp .env.example .env
docker compose up -d clickhouse server # shipped image, UI on http://localhost:8080
```
From source, or on your own ClickHouse: [Set up the server](/Log_parser/getting-started/server.html).
=== “Guided tour”
```sh
uv run logpipe showcase --auto # server + a web shop's logs + a real agent, 8 acts
```
Next: Install · Set up the server · Run it · Architecture · Code structure