---
title: "Do you still need Elasticsearch for log analytics? ClickHouse says no."
description: "ClickHouse's redesigned inverted-index full-text search feeds matches directly into its vectorized analytical engine, and on a reproducible OpenTelemetry log benchmark at 1B, 10B and 50B rows it ran a nine-query search-plus-aggregation suite 2-6x faster than Elasticsearch, with a much smaller storage footprint."
url: "https://swe.quest/articles/do-you-still-need-elasticsearch-for-log-analytics-clickhouse-says-no-7011cded5588b0ad"
canonical: "https://clickhouse.com/blog/elasticsearch-log-analytics-clickhouse"
source: "ClickHouse"
published: "2026-04-23"
difficulty: "medium"
kind: "Research"
reading_minutes: 22
tags: ["search","analytics","observability","performance","storage-engines"]
---

# Do you still need Elasticsearch for log analytics? ClickHouse says no.

A post on [ClickHouse](https://swe.quest/sources/clickhouse.md), published 2026-04-23, 22 min read, Research. Original: [https://clickhouse.com/blog/elasticsearch-log-analytics-clickhouse](https://clickhouse.com/blog/elasticsearch-log-analytics-clickhouse)

## Summary

ClickHouse's redesigned inverted-index full-text search feeds matches directly into its vectorized analytical engine, and on a reproducible OpenTelemetry log benchmark at 1B, 10B and 50B rows it ran a nine-query search-plus-aggregation suite 2-6x faster than Elasticsearch, with a much smaller storage footprint. Both systems ran single-node on identical m6i.8xlarge instances with matching sort orders, result caches disabled, and cold and hot runs measured separately. Elasticsearch was tested with Query DSL, which was faster than ES|QL. The storage gap comes from ClickHouse's per-column general-purpose compression and from Elasticsearch's need to keep \_source and stored fields. Ingesting 50B rows took under 4 hours in ClickHouse versus about 5 days in a tuned Elasticsearch setup.

Written by swe.quest, not by the author.

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

## Topics

- [Search](https://swe.quest/tags/search.md) (Backend & APIs)
- [Analytics & OLAP](https://swe.quest/tags/analytics.md) (Data & databases)
- [Observability](https://swe.quest/tags/observability.md) (Reliability & operations)
- [Performance engineering](https://swe.quest/tags/performance.md) (Reliability & operations)
- [Storage engines](https://swe.quest/tags/storage-engines.md) (Data & databases)

## Prerequisites

- inverted indexes
- columnar storage
- log analytics basics ([easy posts on Analytics & OLAP](https://swe.quest/tags/analytics.md?difficulty=easy))

## Keywords

ClickHouse, Elasticsearch, OpenTelemetry, Lucene, MergeTree, ES|QL, ClickStack

## Related posts

- [How Rokt Achieved Real-time Reporting with ClickHouse](https://swe.quest/articles/how-rokt-achieved-real-time-reporting-with-clickhouse-89f752e157ebd50c.md): ClickHouse · 2022-12-06 · Easy · 4 min read · Analytics & OLAP, Databases, Cost optimization, E-commerce
  Rokt replaced an Elasticsearch-backed reporting layer with ClickHouse.
- [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.
- [ClickHouse vs. Elasticsearch: The Billion-Row Matchup](https://swe.quest/articles/clickhouse-vs-elasticsearch-the-billion-row-matchup-227267b2f21c24e1.md): ClickHouse · 2024-05-07 · Medium · 28 min read · Analytics & OLAP, Performance engineering, Search, Databases, Observability
  On a single 32-core c6a.8xlarge node loaded with 1, 10 and 100 billion PyPI download rows, ClickHouse beats Elasticsearch on count(\*) GROUP BY aggregations (Elasticsearch terms aggregations).
- [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.
- [So, is ClickHouse winning the observability wars?](https://swe.quest/articles/so-is-clickhouse-winning-the-observability-wars-3577c2c26e782dd2.md): ClickHouse · 2026-08-27 · Medium · 20 min read · Observability, Analytics & OLAP, Storage engines, Search, Performance engineering
  ClickHouse has become a common storage and query layer for observability, and the main reason is its columnar architecture.

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)
