Skip to content

In development. Expect rough edges and changes. The source code is not public yet.

Supabase 6 min read Announcement mediumAdept

Supabase Logs: open source logging server

Supabase Logs is now available for self-hosted and CLI users, built on Logflare, a multi-node Elixir cluster that ingests over 1 billion log events daily into BigQuery and has been relicensed from BSL to Apache 2.0. Logflare Endpoints turn parameterized SQL queries into HTTP APIs with read-through in-memory caching, proactive cache warming, SELECT-only parsing and CTE-based query sandboxing. A worked GitHub-webhook example shows how a 10-minute cache refreshed every 2 minutes caps BigQuery cost at five queries no matter how many requests arrive. Open-sourcing required replacing the closed General SQL Parser with sqlparser-rs and moving to env-var configuration; ClickHouse and Postgres backends plus a Management API are planned.

Assumes: SQL basicslog aggregation concepts

Related posts

  • Clever ingests 200x more logs at the same cost with ClickHouse Cloud

    ClickHouse mediumAdept

    Clever replaced a split Datadog/Athena logging setup with ClickHouse Cloud. It now indexes all ~150 TB/month of logs from 400 services and 200 Lambdas with 60-day retention, a 200x increase in searchable volume, at no extra cost and with 10x compression. The schema extracts hot fields into columns and stores the rest as raw JSON plus an attributes map. It uses token bloom filter indexes at granularity 32 for full-text search, date partitions with a 60-day TTL, and orders by negative Unix timestamp for an 8-10x query speedup. Resilience comes from separate dev and per-region prod services joined via remoteSecure and merge tables, all managed with Terraform and Goose. A custom LogQL-to-SQL layer keeps Grafana familiar for engineers.

  • Why OpenAI chose ClickHouse for petabyte-scale observability

    ClickHouse mediumAdept

    OpenAI ingests petabytes of logs daily, growing over 20% monthly, into a ClickHouse cluster of 90 shards with two replicas each, fed by Fluent Bit agents. Recent data stays on local disk because about 80% of queries touch the last two days, and older logs tier to blob storage. ClickHouse was chosen for being open source, horizontally scalable, tunable in its indexing and queryable in SQL. When the GPT-4o image generation launch raised log volume 50% overnight, the team added a query-only replica and sampled logs, then profiled ClickHouse and found more than half of CPU time going to Bloom filter construction. Replacing a per-insert division with a multiply and bit shift cut CPU usage 40%, and the fix was upstreamed.

  • Introducing Supabase Pipelines

    Supabase mediumAdept

    Supabase Pipelines is a managed change-data-capture service that replicates Postgres tables to analytical destinations in near real time using logical replication, publications and replication slots, with an initial sync followed by batched ongoing changes. BigQuery was the first destination, and an update adds ClickHouse, DuckLake and Snowflake in public alpha. Setup is done in the Dashboard. Constraints include required primary keys for BigQuery, no generated columns, custom types replicated as strings, beta-only schema change support, and no transformations. The underlying ETL engine is open source and written in Rust.

  • The State of SQL-based Observability

    ClickHouse easyNovice

    Observability is increasingly treated as a SQL analytics problem, with OLAP column stores like ClickHouse replacing the NoSQL backends (Cassandra, Elasticsearch, Splunk) that dominated after Twitter's 2013 observability stack. OpenTelemetry standardizes collection, ClickHouse handles storage, and Grafana handles visualization and alerting. ClickHouse's case rests on columnar compression (around 14x on logs), S3-backed separation of storage and compute, materialized views for structuring logs at insert time, and approximate aggregate functions. One cited experiment handled 14TiB of logs for about $300 a month, with the tradeoff that object storage gives up some query speed for simpler operations.

  • Didi Migrates from Elasticsearch to ClickHouse for a new Generation Log Storage System

    ClickHouse mediumAdept

    Didi replaced Elasticsearch with ClickHouse for petabyte-per-day log and trace storage, cutting machine cost by 30% and speeding up queries about 4x on a 400+ node single-replica deployment peaking at 40 GB/s writes and ~200 QPS. A single Flink write pipeline feeds a Log cluster, and materialized views populate a physically isolated Trace cluster plus AggregatingMergeTree trace index tables, with cold data tiered to HDFS. Schema design rounds log time to the hour as the leading sort key, partitions by day, and moves unfiltered fields into Map columns to limit small files. Operational fixes covered per-table write-node allocation for low-traffic tables, Flink-side throttling, a native TCP Flink connector, and HDFS tiering changes that cut restart time from 1 hour to 1 minute.

The quest for software engineering knowledge.

Look:
Layout: