Infrastructure & Operations · Monitoring & Observability
Grafana Loki
Log aggregation built around labels and object storage
Grafana Loki is a horizontally scalable, multi-tenant log aggregation system for teams using Grafana and Prometheus-style labels. It is licensed under AGPL-3.0-only with Apache-2.0 exceptions documented in LICENSING.md. Grafana Cloud Logs provides a hosted option with a free allowance and usage-based paid plans.
Key facts
- License
- AGPL-3.0-only, with Apache-2.0 exceptions documented in LICENSING.md
- Main language
- Go
- Maintainer
- Grafana Labs and community contributors
- First released
- 2018
- Latest release
- v3.7.9, October 20, 2026
- GitHub stars
- 29,049, October 2026
- Hosted option
- Grafana Cloud Logs, free tier with up to 50 GB of logs; paid usage and Enterprise Logs are available
What Grafana Loki is
Grafana Loki is a horizontally scalable, highly available, multi-tenant log aggregation system inspired by Prometheus. Grafana Labs maintains the project with community contributors, and its first release was in 2018. The GitHub repository records 29,049 stars in October 2026. Loki targets engineering teams that want centralized logs without building a full-text index over every line. Its design keeps labels as indexed metadata, compresses log data into chunks, and stores those chunks in object storage. Grafana supplies the main exploration and dashboard experience, while command-line access is available through LogCLI. The result is a logging backend aimed at organizations already operating Grafana, Kubernetes, or Prometheus-style observability workflows.
How it works
A typical Loki workflow starts with Grafana Alloy collecting logs and attaching labels that describe services, environments, namespaces, or hosts. Alloy sends streams to Loki, which groups entries by label sets and writes compressed chunks to storage. Engineers use LogQL in Grafana to select streams, filter lines, parse structured content, calculate rates, and connect logs with dashboards or alerts. Loki can run as a single binary for experiments and smaller installations, then expand into separate components for ingestion, querying, compaction, rules, and storage. The label-first model keeps indexing focused on metadata, so teams must choose labels carefully. Promtail remains feature complete, while the current documentation directs new collection deployments toward Grafana Alloy.
Architecture and recent releases
Loki is written in Go and exposes HTTP and gRPC interfaces for ingestion, querying, rules, and administration. Its storage model supports object stores such as Amazon S3 and Google Cloud Storage, as well as a local filesystem for limited deployments. Grafana provides the query and visualization layer, while Kubernetes deployments can use Helm and the Loki Operator. The repository contains Loki, LogCLI, and operator components, so its release page includes distinct artifacts and version lines. The newest main Loki release is v3.7.9 from October 20, 2026. That release includes dependency and security updates, a fix for concurrent WAL appends, request body limits, and LogQL accumulator changes. The operator separately released v0.12.0 on October 7, 2026.
License and pricing
The repository uses AGPL-3.0-only, with Apache-2.0 exceptions documented in LICENSING.md. Commercial use is permitted under that license, subject to AGPL obligations, including source and licensing requirements when applicable. Grafana Cloud Logs is the hosted option. Its free allowance includes up to 50 GB of logs ingested monthly with 14-day retention. The self-serve Pro plan starts with a $19 monthly platform fee, then lists Logs usage from $0.050 per GB processed, $0.400 per GB written, and $0.100 per GB retained. Grafana Cloud Enterprise has custom pricing and a stated $25,000 annual minimum spend. Grafana also offers Enterprise Logs for organizations seeking supported self-managed deployments.
Limitations and how it compares
Loki's label-first design rewards disciplined stream labels and can make arbitrary full-text investigation less direct than systems built around broader indexing. Object storage, retention, compaction, schema management, and collection agents still require operational ownership in a self-managed installation. Elasticsearch offers richer document indexing, OpenSearch provides a comparable open-source search stack, and proprietary Splunk emphasizes mature enterprise search and security workflows. Loki is a strong choice for teams that already use Grafana, want lower index storage overhead, and can define useful labels. Teams needing highly interactive, arbitrary text search across poorly structured logs should compare its query model carefully before standardizing on it.
Main features
- Label-Based Indexing. Indexes stream labels instead of full log contents, reducing index scope while making label design central to query performance and usability.
- LogQL Queries. Provides LogQL for selecting streams, filtering lines, parsing fields, calculating rates, and building log-derived metrics and alerts.
- Object Storage. Stores compressed log chunks in Amazon S3, Google Cloud Storage, or compatible object storage, with local filesystems for limited deployments.
- Grafana Integration. Connects directly with Grafana for log exploration, dashboards, alerting, and correlation with metrics and other observability data.
- Multi-Tenant Operation. Separates tenant data and query access, allowing a shared Loki installation to serve multiple teams or organizational boundaries.
- Horizontal Scaling. Supports distributed deployments that separate ingestion, querying, compaction, rule evaluation, and storage responsibilities across components.
- Alloy Collection. Grafana Alloy is the current collection path, while Promtail remains feature complete and is no longer the preferred new collector.
Self-hosting Grafana Loki
Loki can run as a single binary for experiments and smaller installations, or as a distributed deployment for separate read, write, backend, query, ingester, compactor, and ruler components. Kubernetes teams can deploy it with Helm or the Loki Operator, while packaged binaries and container images support other environments. A production installation needs object storage such as Amazon S3 or Google Cloud Storage, or a local filesystem for constrained use. The architecture may also use a write-ahead log and optional caching services, depending on configuration. The project does not publish one universal minimum hardware specification. Plan retention, schema changes, compaction, object-storage capacity, upgrades, and backups before production rollout. The in-repository Helm chart remains maintained for Grafana Enterprise Logs users, while the OSS chart moves to grafana-community/helm-charts effective March 16, 2026.
Strengths
- The label-first model can reduce index storage compared with systems indexing every log field.
- Grafana and LogQL provide one workflow for logs, dashboards, derived metrics, and alerts.
- Object-storage support gives teams a clear path from small installations to distributed deployments.
- The project has active releases, security updates, and maintained Kubernetes operator components.
Drawbacks
- Poorly chosen labels can create costly stream cardinality and awkward queries.
- Full-text investigation is less direct than search-first logging systems for unstructured data.
- Production operation requires careful storage, retention, compaction, and schema management.
What teams replace with it
Teams usually evaluate Grafana Loki when they want to move off Splunk, Datadog Logs, Elastic Observability.
For side-by-side commercial comparisons, browse our alternatives hub.
Open-source alternatives to Grafana Loki
- OpenSearch
- Elasticsearch
- Graylog
- VictoriaLogs
- SigNoz
Frequently asked questions
Is Grafana Loki free to use?
The Loki repository is open source under AGPL-3.0-only, with Apache-2.0 exceptions documented in LICENSING.md. You can self-host it without a software subscription, while paying for infrastructure such as compute, object storage, transfer, and operations. Grafana Cloud Logs has a free allowance of up to 50 GB ingested monthly, followed by usage-based pricing.
Can companies use Loki commercially?
Yes, commercial use is allowed under AGPL-3.0-only, subject to the license obligations that apply to your distribution and service model. Loki also documents Apache-2.0 exceptions in LICENSING.md. Organizations should review the complete license text and their deployment model, especially when modifying Loki or offering it as part of a network service.
What does Loki need for self-hosting?
A small test deployment can run as a single binary with local filesystem storage. Production deployments commonly use Kubernetes, Helm or the Loki Operator, object storage such as S3 or GCS, and separate distributed components. Configuration must cover retention, schemas, compaction, the write-ahead log, backups, and upgrades. Loki does not publish one universal minimum hardware requirement.
How does Loki compare with OpenSearch?
Loki indexes labels and stores compressed chunks, while OpenSearch provides a document-oriented search and analytics stack with broader field indexing. Loki fits teams centered on Grafana, Prometheus-style labels, and object storage. OpenSearch is a better match when users need arbitrary field and text search across richly structured documents, accepting a larger search-cluster footprint.
Can Loki keep logs private and secure?
Self-hosting keeps log data within infrastructure your organization controls, while Grafana Cloud Logs places it in Grafana's hosted service. Loki supports multi-tenant operation and its 2026 releases include security dependency updates. Privacy also depends on collector configuration, network controls, object-storage permissions, retention policies, credentials, and the security practices applied to Grafana and Kubernetes.
Similar projects to compare
- OpenSearchApache-2.0OpenSearch is an Apache 2.0 search and analytics suite for application search, log analytics, observability, and vector workloads. The Linux Foundation hosts its community foundation, while Amazon OpenSearch Service provides managed clusters and Serverless deployments with usage-based billing. It includes a distributed search engine and a browser interface for dashboards and operational analysis.
- ElasticsearchElastic License 2.0 for default distributions, with AGPLv3, SSPL 1.0, and ELv2 source optionsElasticsearch is a distributed search and analytics engine for application search, logs, metrics, security data, and vector retrieval. Elastic maintains its default distribution under Elastic License 2.0, with AGPLv3 and SSPL 1.0 options for significant source portions. Elastic Cloud offers hosted and serverless deployments, including a 14-day trial.
- SigNozMIT for core; SigNoz Enterprise License for eeSigNoz is an OpenTelemetry-native observability platform for application traces, logs, metrics, alerts, dashboards, and infrastructure monitoring. Core code uses MIT licensing, while the ee directory uses a SigNoz Enterprise license. SigNoz Cloud starts at $49 per month, and Community SigNoz can run on Docker, Kubernetes, Linux, or other customer infrastructure. Its workflow combines telemetry collection, querying, correlation, visualization, and alerting in one product. This gives teams one place to inspect service behavior, connect related signals, and organize operational follow-up across applications and infrastructure.
- Apache SkyWalkingApache-2.0Apache SkyWalking is an Apache-licensed observability platform for distributed systems. It combines traces, metrics, logs, profiling, topology, events, alerts, service-mesh telemetry, language agents, eBPF tooling, and pluggable storage. It has no first-party hosted plan, so teams trade subscription costs for infrastructure, configuration, retention, security, and ongoing operations.
- BugsinkPolyForm-Shield-1.0.0 (source-available)Bugsink is a focused, Sentry-compatible error tracker for teams choosing self-hosting or European managed hosting. It covers issue grouping, stack traces, debugging context, alerts, permissions, releases, and scoped tokens. Its event-based managed pricing is predictable, while self-hosting requires operational ownership. PolyForm Shield licensing means commercial redistribution and competing-service plans require careful review.
- CachetCachet License (source-available)Cachet is a self-hosted status page for incidents, maintenance, components, metrics, badges, subscriptions, and API automation. It is free to run on operator-controlled infrastructure, but deployment and maintenance remain the operator’s responsibility. The active 3.x rebuild uses Laravel, Tailwind, and Filament, while 2.x is old. Its custom license requires careful distribution review.
Sources
- GitHub repository and README
- GitHub releases
- Loki documentation
- Grafana Loki OSS page
- Grafana pricing
- Loki release notes
Last updated 2026-10-22.