Where Were the Logs? Building a Log Ingestion Engine That Never Silently Drops a Log
Three hours were lost in a scenario where twelve services produced bespoke log files onto individual disks with no central search, no live dashboard, and no audit trail. The log ingestion engine was built to centralize logging, provide signals within minutes about service issues, and maintain a persistent audit trail. The Go service receives batched JSON on /logs, validates at field level, enriches and routes to three SQLite destinations via RabbitMQ with a bounded in-memory fallback. Admission is durable via a write-ahead spool fsynced before ack. Unacked spool entries are replayed on startup. Load test sustained 1,000 logs/s acceptance with 12 pipeline workers, batch 100, on a laptop; default 4 workers do not sustain the target.