Loki vs Elasticsearch

Logging.

Loki strengths

Loki's strengths are cost, operational simplicity, and Grafana fit. The label-index model is the core trade: small index, cheap object storage, fast label queries, slower content scans.

Elasticsearch strengths

Elasticsearch's strengths are full-text search, ecosystem maturity, and aggregation. Worth the cost when you actually use them; expensive when you do not.

How to decide

The decision is shape-driven. Grafana-stack, full-text-heavy, and compliance-bound each point to a different answer; the wrong pick produces years of friction.

Hybrid approaches

Hybrid is rarely worth it. Most teams should pick one and stick; the operational tax of two log stacks usually exceeds the benefits unless the requirements actually demand both.

Common pitfalls

The pitfalls are predictable. High-cardinality Loki, no-ILM Elastic, cargo-cult migration. Each one shows up reliably in retros from teams that skipped the planning step.