Loki versus Elasticsearch/OpenSearch for logs: what are the trade-offs?

IntermediateProductionLog Pipelines
Answer
  • Loki: label index plus compressed chunks in object storage. Much cheaper to run and store, simple operations, but full-text search across huge ranges is brute force (scans chunks).
  • Elasticsearch/OpenSearch: full inverted index, fast arbitrary search and rich aggregations, but expensive in CPU, RAM and disk, and heavier to operate (shards, mappings, JVM).

We use Loki for most application logs and an indexed store (or SIEM) for security and search-heavy use cases.

All Monitoring & Observability questions Roadmap: Logging & tracing

More on Log Pipelines