Analytics cookies only (Google Analytics, PostHog). No ad networks, no cross-site tracking. See our privacy policy.
upstream: github.com/grafana/loki (opens in new tab) · github.com/Graylog2/graylog2-server (opens in new tab)
Pick Loki
If you already use Grafana, can narrow searches by labels and want a small footprint (~47 MB idle).
Pick Graylog
If you need a built-in interface with full-text search, dashboards, alerts and syslog or Beats inputs, and can give it 8 GB.
Loki and Graylog both centralise logs, but they make opposite trade-offs. Loki indexes only labels and keeps log text compressed. Graylog indexes the messages and ships a whole application around them.
Grafana Loki stores log streams described by labels, queried with LogQL, usually from Grafana. A typical setup is an agent such as Grafana Alloy, Loki, and Grafana. Our snippet pins 3.7.9 and runs one process with the image's stock configuration.
Graylog is log management on MongoDB with a Data Node for search storage, offering search, dashboards and alerting. Upstream's open-core Compose file exposes inputs for syslog, GELF, Beats and raw TCP or UDP, and currently defaults to the 7.2 images.
If you usually know which service or host you care about, Loki's label selection followed by a text filter is enough, and indexing stays cheap. If you hunt for an unknown string or field across everything, Graylog's full index is what you want, and you pay for it in memory and disk.
Loki has no authentication layer of its own, and the single-binary setup here accepts requests on port 3100 as they come, so our snippet binds it to localhost. To reach it from another host, add an authenticating proxy. Graylog has its own login.
In our install check (GCP e2-standard-2, Ubuntu 26.04), idle at first boot, Loki used ~47 MB of RAM (October 2026) and Graylog's stack ~3.0 GB (September 2026). Loki's figure excludes Grafana and any agent. The catalog floors are 512 MB and 8 GB.
Loki is 2 out of 5: a short Compose file, then add it to Grafana as a data source. Graylog is 5 out of 5: three services, secrets in .env, a raised vm.max_map_count for the Data Node and a first-run preflight screen. Upstream's Compose file binds its ports to 127.0.0.1, so use an SSH tunnel or reverse proxy to reach the interface from elsewhere.
Loki is AGPL-3.0. Graylog is SSPL-1.0, which is not an OSI-approved licence.
Choose Loki for a small server or an existing Grafana setup.
Choose Graylog when logs are something people investigate daily and you have the hardware. For logs with metrics and traces in one product, see SigNoz vs OpenObserve.
See the Grafana Loki and Graylog pages. Set retention before disks fill, and back up configuration as well as data.
Grafana Loki lists a lower minimum: 512 MB vs 8192 MB for Graylog.
No. Grafana Loki is AGPL-3.0, Graylog is SSPL-1.0.
Loki for cheap log storage beside Grafana and Prometheus. Graylog for centralised log search with its own interface.
It does not index log contents. You select streams by label, then filter the text with LogQL.
No. Loki has no authentication layer; put an authenticating reverse proxy in front of it.
In practice yes, for browsing and graphing. Loki itself is an API.
One integrated OTel app vs. the dashboard layer you build a stack around.
The full observability platform vs. the zero-config real-time agent.
Same job, opposite ownership: run the ClickHouse stack yourself, or pay per host forever.