Open Logs

Your logs, on your own Cloudflare account.

Open Logs is a free, open-source log viewer you install with one command. Send logs over HTTP, then tail, search, chart and alert on them. Storage runs on Cloudflare Basin, so it stays affordable as you grow.

# send a log from any app
curl https://logs.acme.dev/v1/logs \
  -H "Authorization: Bearer $SOURCE_TOKEN" \
  -d '{"level":"error",
       "message":"payment failed: gateway_timeout",
       "order_id":46346}'
13:50:55ERRORcheckoutpayment failed: gateway_timeout
The Open Logs dashboard: event, error and warning counts, events by level over 24 hours, events by source, and top errors.

Every project gets an overview dashboard out of the box.

Live tail and search

Watch logs arrive, filter by source, level or any field, and open an event to see everything it carried.

  • level = error, code:gateway_timeout, or plain text
  • A histogram of the selected range above the list
  • Copy an event as JSON, link to it, or see what happened around it
Live tail filtered to errors, with one checkout error open showing its fields.

Dashboards without SQL

Pick a filter, a measure and a chart type. Counts, averages and p95, as numbers, bars, lines or pies.

  • Each number compares itself with the previous period
  • 15 minutes, 1 hour, 24 hours or 7 days
  • As many dashboards per project as you need
A Checkout dashboard with checkout errors, orders placed, average order value, payment failures by code and API latency p95.

Alerts on any chart

Put an alert on a chart: when logs go above a number, or rise by a percentage, Open Logs opens an incident and calls your webhook.

  • Windows from 5 to 60 minutes
  • Quiet time after resolving, so you aren't paged twice
  • Incidents resolve themselves when things recover
An alert called Checkout errors spike: opens an incident when logs are above 20 in the last 15 minutes.

Also included

Projects and sources

One project per product, one source per app, each with its own ingest token.

Team sign-in

Invite teammates with a link. Owner, admin and member roles, no extra service to run.

Simple HTTP ingest

Send one log or a batch of up to 10,000 from curl, JavaScript, Python, Go or anything else.

Saved views

Save a search to the sidebar and come back to it in one click.

Update and roll back

npm run update and npm run rollback keep your install current.

Your account, your data

Everything runs in your Cloudflare account. Nothing leaves it.

How it works

Your app sends logs to a Cloudflare Worker. The Worker checks the source token and writes the batch to a Pipelines stream.

The stream writes logs to an Iceberg table in your own R2 bucket, partitioned by day. Basin compacts the files as they build up.

Search, live tail and charts turn your filters into SQL and run it on Basin SQL. Each query reads only the days it needs.

Users, projects, dashboards and alerts live in D1. A cron trigger checks alerts every minute.

App → Worker → Pipelines → R2 (Iceberg) → Basin SQL → UI

Install

# needs a Cloudflare account on Workers Paid
git clone https://github.com/Adithya188288/open-logs.git open-logs
cd open-logs
npm run setup

Setup creates everything in your account, deploys the app and prints the address to sign in. The README covers sending logs, limits and updates.

Free and open source. Fork it, tell me what you think, and star it on GitHub if it helps.