Interview Prep/Monitoring & Observability/Logging: ELK/EFK, Loki & Log Shippers

What is Grafana Loki and how is it different from Elasticsearch?

BeginnerConceptLogging: ELK/EFK, Loki & Log Shippers
Answer

Loki indexes only a small set of labels (namespace, app, pod, level) and stores the log lines as compressed chunks in object storage. Queries pick streams by labels, then grep the content.

Elasticsearch indexes every word. So Loki is far cheaper to run and store, but full-text searches over large time ranges are slower and depend on good label selection. Elasticsearch is stronger for complex search and analytics; Loki for cheap, Kubernetes-native log aggregation.

All Monitoring & Observability questions Roadmap: Logging & tracing

More on Logging: ELK/EFK, Loki & Log Shippers