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

  1. 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%
  2. 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)
  3. 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)
Timeline
StartEndSeverityIncident
2026-10-07 13:412026-10-07 13:56criticalSubmit failures at provider PROV-A
2026-10-07 14:212026-10-07 14:35majorQueue stall on gw-sms-02
2026-10-07 14:402026-10-07 14:50majorDelayed delivery reports from PROV-B
Summary and timeline of the offline report, from the repo file. lumilog/examples/incident-report-offline.md

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.