
Loki
Horizontally-scalable, multi-tenant log aggregation
The Lens
Loki collects logs from your infrastructure without indexing the content, which makes it dramatically cheaper than Elasticsearch-based logging. It's like Elasticsearch for logs, except it doesn't index the full text of every log line. Instead, it indexes only metadata labels (like service name, environment, pod), which makes it dramatically cheaper to run and simpler to operate.
Self-hosting is free under AGPL-3.0. You get the full log aggregation engine, LogQL query language, alerting integration with Grafana, and multi-tenant support. It's designed to run alongside Prometheus (metrics) and Tempo (traces) for the full Grafana observability stack.
Grafana Cloud offers a free tier with 50GB of logs per month, which is generous for small projects. Paid cloud starts at usage-based pricing.
The catch: because Loki doesn't full-text index, searching for a specific string across millions of logs is slower than Elasticsearch. You need to know which labels to filter by first. If your debugging workflow is 'grep for this error message across everything,' Loki will frustrate you. Also, the AGPL license means if you modify Loki and offer it as a service, you must open-source your changes.
Free vs Self-Hosted vs Paid
free self hosted paid cloud**Self-hosted (free):** Full features under AGPL-3.0. Runs in single-binary mode for small deployments or microservices mode for scale. Storage backend can be local filesystem, S3, GCS, or Azure Blob. Minimum viable setup: 2GB RAM, 1 CPU.
**Grafana Cloud free tier:** 50GB logs/month, 30-day retention. Genuinely useful for small teams, no infrastructure to manage.
**Grafana Cloud paid:** Usage-based. Roughly $0.50/GB ingested after the free tier. Gets expensive at high volume; 500GB/month is $225/mo.
**The math on self-hosting:** A Hetzner VPS (8GB RAM, $12/mo) + S3-compatible storage ($5-10/mo) handles moderate log volume. Compare that to $225/mo on Grafana Cloud at 500GB. Self-hosting wins on cost if you have the ops knowledge.
**vs. Elasticsearch:** Elasticsearch needs 3x the RAM for the same log volume because of full-text indexing. Loki's approach trades query flexibility for resource efficiency.
Self-host free. Grafana Cloud free tier covers 50GB/mo. Paid cloud is ~$0.50/GB after that.
Similar Tools
About
- Stars
- 27,917
- Forks
- 3,966
Explore Further
More tools in the directory
Get tools like this delivered weekly
The Open Source Drop — the best new open source tools, analyzed. Free.





