---
title: "Clever ingests 200x more logs at the same cost with ClickHouse Cloud"
description: "Clever replaced a split Datadog/Athena logging setup with ClickHouse Cloud."
url: "https://swe.quest/articles/clever-ingests-200x-more-logs-at-the-same-cost-with-clickhouse-cloud-cafdd48afca59e57"
canonical: "https://clickhouse.com/blog/clever-observability-at-scale"
source: "ClickHouse"
published: "2026-06-30"
difficulty: "medium"
kind: "Case study"
reading_minutes: 8
tags: ["observability","analytics","cost-optimization","system-design"]
---

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

A post on [ClickHouse](https://swe.quest/sources/clickhouse.md), published 2026-06-30, 8 min read, Case study. Original: [https://clickhouse.com/blog/clever-observability-at-scale](https://clickhouse.com/blog/clever-observability-at-scale)

## Summary

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.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [Observability](https://swe.quest/tags/observability.md) (Reliability & operations)
- [Analytics & OLAP](https://swe.quest/tags/analytics.md) (Data & databases)
- [Cost optimization](https://swe.quest/tags/cost-optimization.md) (Reliability & operations)
- [System design](https://swe.quest/tags/system-design.md) (Architecture & design)

## Prerequisites

- ClickHouse MergeTree basics ([easy posts on Analytics & OLAP](https://swe.quest/tags/analytics.md?difficulty=easy))
- log management concepts ([easy posts on Engineering management](https://swe.quest/tags/engineering-management.md?difficulty=easy))
- data skipping indexes

## Keywords

ClickHouse Cloud, Datadog, LogQL, Grafana, AWS Athena, Terraform, Goose, ClickStack

## Related posts

- [How we Built a 19 PiB Logging Platform with ClickHouse and Saved Millions](https://swe.quest/articles/how-we-built-a-19-pib-logging-platform-with-clickhouse-and-saved-millions-5704529f91592f0b.md): ClickHouse · 2024-04-02 · Medium · 32 min read · Observability, Analytics & OLAP, Cost optimization, Scaling, System design
  ClickHouse replaced Datadog for internal logging with LogHouse, a per-region ClickHouse deployment holding over 19 PiB uncompressed (37 trillion rows) for its AWS regions.
- [How Cloud CIRCUS used ClickHouse to speed up and simplify log analytics](https://swe.quest/articles/how-cloud-circus-used-clickhouse-to-speed-up-and-simplify-log-analytics-2fa577e0b57d75c9.md): ClickHouse · 2025-06-17 · Medium · 6 min read · Analytics & OLAP, Data pipelines, Cloud platforms, Cost optimization, Observability
  Cloud CIRCUS replaced Amazon Athena with a self-managed ClickHouse instance on a single 4 vCPU / 32 GB EC2 machine to analyze CloudFront access logs from 2,000+ BlueMonkey customer sites.
- [Didi Migrates from Elasticsearch to ClickHouse for a new Generation Log Storage System](https://swe.quest/articles/didi-migrates-from-elasticsearch-to-clickhouse-for-a-new-generation-log-storage-50fcb56512cab39a.md): ClickHouse · 2024-04-19 · Medium · 11 min read · Analytics & OLAP, Observability, Storage engines, Scaling, Cost optimization
  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.
- [How trip.com migrated from Elasticsearch and built a 50PB logging solution with ClickHouse](https://swe.quest/articles/how-trip-com-migrated-from-elasticsearch-and-built-a-50pb-logging-solution-with-079ade1f405efcf8.md): ClickHouse · 2024-06-12 · Medium · 16 min read · Analytics & OLAP, Observability, Scaling, Cost optimization, Databases
  Trip.com replaced its Elasticsearch-based centralized logging platform with ClickHouse after hitting stability, ingestion and cost limits at 4PB, and has since grown it toward 50PB.
- [How Canva achieved 10x faster search and 70% lower costs with ClickHouse](https://swe.quest/articles/how-canva-achieved-10x-faster-search-and-70-lower-costs-with-clickhouse-40e415ef239059a0.md): ClickHouse · 2025-12-01 · Medium · 7 min read · Observability, Analytics & OLAP, Cost optimization, Performance engineering, Databases
  Canva moved tracing and logging (about 3 million spans and 3 million logs per second) onto a self-managed ClickHouse cluster of 5 shards × 3 replicas on Kubernetes.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
