Work / LumiLog
LumiLog
Finds incidents in SMS gateway logs and writes the report.
Shipped · v0.2.0View the repository
Artifact
Incident report
- Source:
logs/sms-gateway.log - Period: 2026-10-07 13:00:00.110 → 2026-10-07 15:04:18.046
- Events: 13,702 parsed, 0 unparsed
- Mode: offline (rule-based). Every number comes from the log data.
Summary
- CRITICAL 13:41–13:56 · Submit failures at provider PROV-A: PROV-A submit failures 166/260 (64%), peak 92%/min vs baseline 0.0%
- MAJOR 14:21–14:35 · Queue stall on gw-sms-02: gw-sms-02 queue grew to 462 while it submitted 0 messages (normal ~30/min)
- MAJOR 14:40–14:50 · Delayed delivery reports from PROV-B: PROV-B delivery reports delayed: p90 up to 14.5 min (normal p90 ~27s)
| Start | End | Severity | Incident |
|---|---|---|---|
| 2026-10-07 13:41 | 2026-10-07 13:56 | critical | Submit failures at provider PROV-A |
| 2026-10-07 14:21 | 2026-10-07 14:35 | major | Queue stall on gw-sms-02 |
| 2026-10-07 14:40 | 2026-10-07 14:50 | major | Delayed delivery reports from PROV-B |
Provider names replaced.
Problem
When an SMS gateway misbehaves, an engineer greps logs by hand to work out what failed, where, and since when.
Approach
Parse the logs into a SQLite store, find incidents with deterministic detectors, then investigate each one with query tools and write a Markdown report. Numbers come from code that can be tested; the investigator only reasons over facts it can query.
What's built
- A parser and SQLite store for one documented log line format. Lines that do not parse are counted, not dropped silently.
- Three detectors: provider_failure_spike, queue_stall and dlr_delay.
- Five investigator tools: search_logs, error_stats, trace_message, slow_deliveries and compare_windows.
- Two investigators using the same tools: offline rules with no API key, or a Claude agent.
- Redaction of phone numbers, IPv4 and email addresses before anything leaves the machine.
- A generator of synthetic logs with injected incidents.
Stack
- Python 3.10+, Typer
- SQLite
- Optional anthropic package for Claude mode
Status
Shipped · v0.2.0
Open on the roadmap: a published Claude-mode example report, a WhatsApp Business API log format, a small web UI.