ELK Stack vs Loki

Full-text log indexing versus label-based log aggregation for observability.

Overview

What is being compared

Both are log aggregation stacks. The ELK Stack (Elasticsearch, Logstash, Kibana) indexes every field of every log line for full-text search and analytics. Grafana Loki indexes only log stream labels, not log content, and stores compressed log chunks in object storage.

  • What is indexed — Every field of every log line — Stream labels only (pod, namespace, app)
  • Storage — Index overhead plus replicas, 3 to 5x raw size — Compressed chunks in S3, about 0.2x raw size
  • Query — KQL and Lucene: full-text, regex, fuzzy, aggregations — LogQL: filter by labels, then line filters or metric queries
  • Collection — Logstash or Beats — Promtail or the OpenTelemetry Collector
  • Operations — Capacity planning, JVM tuning, ILM, snapshots — Much less attention with an S3 backend
  • Best at — Free-text search, security analytics (SIEM), compliance — Cheap operational log viewing with Grafana

Sign up free to read the full topic

More Comparisons topics

Start free on Cariara · Coding problems · System design studio