Tools/grafana/loki

Loki

Horizontally-scalable, multi-tenant log aggregation

28.7k+30/wkgrowthGoGNU Affero General Public License v3.0trending

The Lens

By Erik Loyd, SaaS CEO and former COO/CFO of an AWS Premier Partner.

Updated Jun 2026

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.

Self-hosting ops:moderate

Get tools like this every Wednesday

One featured tool, three on the radar. No fluff.

Similar Tools

Score
78/100 · B+
Adoption27/30
Maintenance25/25
Community9/20
License7/15
Analysis10/10

A low score is not a verdict on quality. Young and niche tools start low by design. How we calculate scores

Trust Signals

High adoption: 28,005 starsActive community: 3,977 forks

About

Stars
28,678
Forks
4,076

Explore Further

More tools in the directory