Open Source / Infrastructure

Log Cannon: An Open-Source Log Aggregation Platform Built to Run at Scale

An open-source alternative to Seq that runs entirely on Cloudflare, with no log server to keep alive and no lost events when a write stalls.

01

Problem

Teams running Serilog and other structured loggers often end up choosing between paying for a hosted tool like Seq or gluing together their own log pipeline. Neither is a great option when you also need webhook and OpenTelemetry ingestion, and you can't afford to silently drop events if the pipeline hiccups during an outage — which is exactly when you need your logs the most.

02

Approach

  • Designed Log Cannon as an open-source, drop-in alternative to Seq, built for Serilog with webhook and OpenTelemetry ingestion paths.
  • Put ingestion at the Cloudflare edge, so events are accepted close to the source and the request returns before storage is touched.
  • Wrote every event to Cloudflare Basin, an Iceberg table on R2. A write that fails is retried, then spilled to R2 and replayed on a schedule.
  • Replaced the first version (a Go consumer, a ClickHouse server and a Next.js dashboard) with a single Worker, so there's no server to patch, back up or keep online.
03

Outcome

  • In production, Log Cannon takes in about 800,000 events a day from 40 sources across the products that report to it.
  • A stalled write goes to R2 and is replayed later, so a bad minute on the storage side doesn't cost you the logs from that minute.
  • Fully open source, so any team can run it in their own Cloudflare account instead of paying for a hosted log aggregator.

Stack

Cloudflare WorkersTypeScriptCloudflare BasinR2D1

Need infrastructure that doesn't fall over?

If you're building a product that needs to survive real traffic — not just a demo — let's talk about what you're shipping.
Last updated: