Search iThub

Search tools, categories and collections. Type at least two characters.

Explore all tools
↑ ↓ to explore resultsEnter to open · Esc to close

Grafana Loki

Log aggregation that indexes labels, not log contents.

Visit website Save

Grafana Loki is an open-source, multi-tenant log aggregation system that stores compressed logs and indexes only labels, with native Grafana support.

Pricing
Open source
Deployment
Self-hosted
29,132stars4,179forks
1views
Updated

What is Grafana Loki?

Grafana Loki is an open-source log aggregation system for collecting, storing and querying logs. Inspired by Prometheus, it groups log streams using labels and stores compressed, unstructured log data without full-text indexing. Shared labels help teams move between metrics and logs when investigating infrastructure issues.

Loki serves as the storage and query-processing service in a logging stack where Grafana Alloy collects and forwards logs, and Grafana provides the query and display interface. It supports single-host operation as a single binary, alongside horizontal scaling, high availability and multi-tenancy. Kubernetes Pod labels can be collected and indexed as metadata.

Grafana Labs started the project in 2018 and releases it under the AGPLv3 license, and Grafana provides native support for querying it. Loki differs from Prometheus by handling logs instead of metrics and by receiving logs through push rather than pull. In the current stack, Grafana Alloy replaced Promtail as the collection agent, because Promtail is considered feature complete.

Key capabilities

  • Label-based indexing Groups log streams by metadata without creating a full-text index of log contents.
  • Log ingestion Receives pushed logs from collectors such as Grafana Alloy and from the Docker logging driver.
  • Log querying Processes log queries for Grafana and the LogCLI command-line client.
  • Kubernetes logging Stores Pod logs and indexes metadata such as Pod labels.
  • Deployment flexibility Supports single-host operation and horizontally scalable, highly available deployments.
  • Ingestion monitoring Loki Canary checks a Loki installation for missing logs.
Advertisements

Where Grafana Loki fits

Loki fits into infrastructure troubleshooting and incident investigation workflows, particularly where teams already use Prometheus labels and Grafana. In Kubernetes environments, indexed Pod metadata provides context for locating relevant log streams. Docker workloads can forward logs through the documented logging driver.

Before deployment, teams should verify that label-based indexing suits their query patterns rather than expecting full-text indexing. They should also plan the collector and display components, review tenant configuration when sharing an installation, and check the documented Helm chart migration if deploying through Helm.

Install

go build ./cmd/loki

Reviews of Grafana Loki

No reviews yet

Be the first to share your experience with Grafana Loki.

Loading review form…

Alternatives to Grafana Loki

Compare Grafana Loki with these tools →