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.
More on Logging: ELK/EFK, Loki & Log Shippers
What is the ELK stack, and what is EFK?BeginnerHow does Elasticsearch store and search logs?IntermediateWhat is ILM (Index Lifecycle Management) and why do log clusters need it?IntermediateWhat is an Elasticsearch data stream?AdvancedWhat is an index template and mapping, and what is a mapping explosion?AdvancedWhat does Logstash do compared with Beats?Intermediate