Self-host Grafana Loki
v3.6.20Prometheus-inspired log aggregation for cloud-native use
- Stars
- 29 138
- Ports
- 3100 (HTTP API and ingestion), 9096 (gRPC)
grafana/lokiWhat is Grafana Loki?
Grafana Loki is a log aggregation platform built for cloud-native deployments. It stores compressed, unstructured logs while indexing only metadata labels, which keeps storage costs low and queries fast. The system works naturally with Prometheus label conventions and Grafana dashboards, and excels at handling Kubernetes pod logs. Three components make up the stack: Loki itself for storage and queries, Alloy (formerly Promtail) for collecting logs, and Grafana for the UI. Deployment options include a single binary, a microservices architecture, or a Helm chart on Kubernetes. The code is licensed under AGPL-3.0-only with Apache-2.0 exceptions.
Grafana Loki alternatives
AlloySelf-hosted OpenTelemetry Collector with Prometheus pipelines. Programmable pipelines, clustering, Loki/Tempo/Mimir/Pyroscope integrations.CompareAlloy with Grafana Loki
grafanaGrafana is a self-hosted, open-source observability platform for querying, visualizing, and alerting on telemetry data from many sources.Comparegrafana with Grafana Loki
gigapipeSelf-hosted open-source observability backend merging four telemetry types into ClickHouse with Loki, Prometheus, Tempo and Pyroscope protocol support.Comparegigapipe with Grafana Loki
kubetailSelf-hosted, open-source Kubernetes logging tool that tails multiple pod logs in real-time via CLI or web dashboard, using your cluster's API directly.Comparekubetail with Grafana Loki
GrafanaMimirOpen-source, self-hosted long-term TSDB for Prometheus: multi-tenant, replicated metrics storage that scales past a billion active series.CompareGrafanaMimir with Grafana Loki
monoscopeOpen-source, self-hosted observability that keeps logs, metrics and traces in your own S3 buckets, with plain-English queries, scheduled AI agents and session replay.Comparemonoscope with Grafana Loki
corootSelf-hosted, open-source APM and observability platform where eBPF agents capture every telemetry signal without code changes, with service maps and SLO alerting.Comparecoroot with Grafana Loki
LogchefLightweight, single-binary log analytics interface for ClickHouse, focused on high-performance querying and visualizationCompareLogchef with Grafana Loki
Should you self-host Grafana Loki?
Grafana Loki scores 81/100 on selfhost.directory (how scoring works) and ranks #1 of 8 in Logging. It has 29 138 GitHub stars, +148 in the last 30 days.
It shipped 22 stable releases in the past year. The latest, v3.6.20, came out on 6 November 2026. New versions land roughly every 7 days.
Setup is moderate: expect some configuration beyond a single command. An official Docker image is available. It is AGPL-3.0-licensed and written mostly in Go.
Its closest alternative on selfhost.directory is rsyslog (67/100, 2 348 stars). Grafana Loki scores higher overall. See Grafana Loki vs rsyslog side by side.
Features
- Alerting on logs
- Docker logging driver
- Kubernetes pod log support
- Label-based indexing
- Log Aggregation
- LogCLI
- LogQL query language
- Loki Canary
- Metrics from logs
- Microservices mode
- Multi-Tenant Support
- Prometheus label compatibility
- Real-time log tailing
- Single binary mode
Grafana Loki README
Loki is a horizontally-scalable, highly-available, multi-tenant log aggregation system inspired by Prometheus. It is designed to be very cost effective and easy to operate. It does not index the contents of the logs, but rather a set of labels for each log stream.
More in Logging
kubetailSelf-hosted, open-source Kubernetes logging tool that tails multiple pod logs in real-time via CLI or web dashboard, using your cluster's API directly.
logdy-coreLogdy is a self-hosted, open-source log viewer streaming terminal logs to a web UI in real time. Single binary, zero dependencies, TypeScript log parser.
LoggiFlySelf-hosted Docker log monitor that alerts via ntfy, Apprise (100+ services), or webhooks. Supports regex, container actions, and log attachments.
logging-flumeOpen-source, self-hosted ingestion service from Apache: streaming agents with sources, channels and sinks move large amounts of log data to HDFS, Kafka or HBase.
logpasteSelf-hosted log upload service with web UI, CLI, and JavaScript support; optional S3/GCS replication via Litestream.
OpenSearchOpenSearch is a powerful open-source search and analytics suite. Apache 2.0 fork of Elasticsearch 7.10 with security, anomaly detection, alerting, vector DB, and ML.
opentraceOpenTrace is a self-hosted, open-source observability server that lets AI coding assistants query production logs, errors, and database metrics directly via MCP.
promtail-syslogSelf-hosted syslog server receiving logs on port 514 and forwarding to Grafana Loki via Promtail, built for network devices that can't run Promtail directly.
rsyslogRsyslog is an open-source, high-performance syslog server that collects, transforms, and routes event data at scale with 100+ modules and 1M+ msgs/sec.
RustrakRustrak is a self-hosted, open-source error tracker compatible with Sentry SDKs. Change one config line to send data to your own infrastructure.
sentrySelf-hosted error tracking and APM platform for developers to detect, trace, and fix production issues. Open-source under Fair Source license.
Syslog-ngsyslog-ng is a self-hosted, open-source log daemon that collects, parses, and forwards logs to files, databases, and big data platforms.

0 comments