ClickHouse's Log Analytics Leap: Bye Elasticsearch?

Alps Wang

Alps Wang

Apr 23, 2026 · 1 views

Bridging Search and Analytics

The core innovation presented is ClickHouse's integrated full-text search powered by inverted indexes, directly feeding into its vectorized analytical engine. This eliminates the traditional need for separate search and analytics platforms, particularly in log analysis where search is often the first step in a broader analytical workflow. The benchmark results, showing ClickHouse performing 2-6x faster and storing data more compactly than Elasticsearch across large datasets (up to 50 billion rows) for realistic OpenTelemetry log workloads, are compelling. This suggests a significant shift in architectural considerations for observability and log management, potentially leading to simpler, more performant, and cost-effective solutions.

The implications are substantial. For organizations currently relying on Elasticsearch for log analytics, this presents a strong case for re-evaluation. The ability to perform complex aggregations, filtering, and time-series analysis directly on search results within a single engine could drastically simplify data pipelines and reduce operational overhead. The tight integration of search and analytics is particularly noteworthy, as it addresses a common pain point where users need to transition between different tools or query languages for different aspects of log investigation. The benchmark's focus on realistic OpenTelemetry logs and a comprehensive query suite (incident drill-down, error counts, service breakdowns, time-based trends) adds considerable credibility and practical relevance.

However, some limitations and concerns warrant consideration. While the benchmark demonstrates impressive performance, it's crucial to remember this is a single-node comparison. Real-world production deployments often involve distributed clusters, which might introduce different performance characteristics and operational complexities for both systems. The article mentions Elasticsearch's ingestion taking significantly longer, which is a critical factor for observability but was not the primary focus of the benchmark. Furthermore, Elasticsearch has a mature ecosystem with extensive tooling (Kibana, Logstash, Beats) and community support, which ClickHouse will need to continue to build upon to match. The article also briefly touches on Elasticsearch's _source field being essential for logs, and ClickHouse reconstructing rows from column files – while efficient, the exact implications for retrieving the exact original ingested JSON might need deeper exploration for certain use cases. Finally, the article doesn't deeply explore the operational aspects of managing ClickHouse for log analytics at scale compared to the well-established operational patterns of Elasticsearch.

Key Points

  • ClickHouse introduces a new, integrated full-text search engine powered by inverted indexes, designed to work seamlessly with its vectorized analytical engine.
  • This combination allows for fast multi-token search followed by large-scale aggregations and filtering within a single system, positioning ClickHouse as a compelling alternative to Elasticsearch for log analytics.
  • Benchmarks on realistic OpenTelemetry log workloads (up to 50 billion rows) show ClickHouse performing 2-6x faster than Elasticsearch and storing data more compactly.
  • The innovation lies in unifying search and analytics, eliminating the need for separate specialized tools and simplifying data pipelines for observability use cases.
  • The benchmark methodology is detailed and reproducible, covering cold and hot query performance under realistic observability scenarios.

Article Image


📖 Source: Do you still need Elasticsearch for log analytics? ClickHouse says no.

Related Articles

Comments (0)

No comments yet. Be the first to comment!