1
0
Fork 0
mirror of https://github.com/grafana/loki.git synced 2026-02-03 19:13:57 +00:00
No description
Find a file
Jack Baldry 7eb12fbb82
Update link to learning journey to reflect new unified journey
The new journey takes a standalone approach—users don't need existing dashboards or prior visualization experience, and can alert on either metrics or logs.

More information in https://github.com/grafana/website/pull/28857

Signed-off-by: Jack Baldry <jack.baldry@grafana.com>
2026-02-03 18:18:30 +00:00
.claude chore: Add AI agent tooling and rename agent documentation (#20609) 2026-01-30 15:21:44 -07:00
.cursor chore: Add AI agent tooling and rename agent documentation (#20609) 2026-01-30 15:21:44 -07:00
.devcontainer chore(deps): update grafana/loki-build-image docker tag to v0.34.9 (main) (#20332) 2026-01-07 17:36:28 -05:00
.github chore(ci): Bump claude-code-action to 1.0 of the action (#20623) 2026-01-30 10:55:32 -05:00
.vscode chore: add shared vscode launch config (#20103) 2025-12-05 09:20:56 -05:00
clients chore(deps): update alpine docker tag to v3.23.3 (main) (#20630) 2026-02-03 13:46:52 +00:00
cmd fix(deps): update module github.com/grafana/loki/v3 to v3.6.4 (main) (#20563) 2026-01-28 14:21:22 -05:00
debug docs: fix Promtail / Loki capitalization (#1130) 2019-10-08 09:41:41 -04:00
docs Update link to learning journey to reflect new unified journey 2026-02-03 18:18:30 +00:00
examples chore: Update docs, dockerfiles to use latest versions of promtail&loki (#14728) 2024-11-01 12:33:47 -04:00
integration fix(deps): update module github.com/prometheus/client_golang to v1.23.2 (main) (#19763) 2025-11-10 12:26:05 -05:00
loki-build-image chore(deps): update alpine docker tag to v3.23.3 (main) (#20630) 2026-02-03 13:46:52 +00:00
nix chore: bump nix go to 1.25.4 (#19817) 2025-11-10 15:51:38 -07:00
operator fix(operator): Update maximum OpenShift version (#20600) 2026-01-29 09:59:53 +00:00
pkg fix(dataobj): Mark events completed after successful commit (#20658) 2026-02-03 14:13:42 +00:00
production chore(deps): update grafana/grafana docker tag to v12.3.2 (main) (#20628) 2026-02-03 08:52:50 -05:00
tools chore(deps): update terraform google to v7.17.0 (main) (#20627) 2026-02-03 08:53:10 -05:00
vendor fix(deps): update module cloud.google.com/go/storage to v1.59.2 (main) (#20632) 2026-02-03 08:53:36 -05:00
.dockerignore chore: Add tools/dev/kafka/data to .dockerignore (#19897) 2025-11-17 22:17:54 +01:00
.gitattributes Enable merge union strategy for CHANGELOG.md. (#5102) 2022-01-11 22:18:54 +02:00
.gitignore chore: add .zed to gitignore (#20199) 2025-12-10 11:40:55 -07:00
.gitmodules operator: Publish docs as public website (#6449) 2022-06-30 11:54:49 +02:00
.golangci.yml chore: increase min-occurrences to 5 (#19691) 2025-11-04 12:35:43 +00:00
.lychee.toml Add a target to find dead link in our documentation. (#3713) 2021-05-12 05:03:50 -04:00
.release-please-manifest.json chore( operator): community release 0.9.0 (#20089) 2025-12-04 14:57:14 +00:00
ADOPTERS.md feat: add toleration for bloom components (#12653) 2024-04-19 15:43:03 +01:00
AGENTS.md chore: Add AI agent tooling and rename agent documentation (#20609) 2026-01-30 15:21:44 -07:00
CHANGELOG.md docs: Update CHANGELOG for missing releases (#20263) 2025-12-17 15:19:26 -05:00
CODE_OF_CONDUCT.md Change conduct contact email address (#2425) 2020-07-27 08:38:41 -04:00
codecov.yml Attempting to add informational only feedback for codecov (#1647) 2020-02-06 15:04:08 -05:00
CODEOWNERS chore: Make oss big tent codeowners of grammar file to be notified about new grammar (#18145) 2025-06-20 09:25:38 -04:00
CONTRIBUTING.md docs: add helm/CONTRIBUTING.md (#18904) 2025-08-22 13:34:57 -04:00
flake.lock chore: bump nix go to 1.25.4 (#19817) 2025-11-10 15:51:38 -07:00
flake.nix chore: Upgrade golang version to 1.25.5 (#20290) 2026-01-02 18:21:40 +05:30
go.mod fix(deps): update module cloud.google.com/go/storage to v1.59.2 (main) (#20632) 2026-02-03 08:53:36 -05:00
go.sum fix(deps): update module cloud.google.com/go/storage to v1.59.2 (main) (#20632) 2026-02-03 08:53:36 -05:00
LICENSE Re-license to AGPLv3 (#3630) 2021-04-20 19:02:50 +02:00
LICENSING.md fix(promtail): Handle docker logs when a log is split in multiple frames (#12374) 2024-04-26 10:40:46 -07:00
MAINTAINERS.md Update MAINTAINERS.md (#11666) 2024-01-16 11:34:50 -05:00
Makefile chore: Upgrade golang version to 1.25.5 (#20290) 2026-01-02 18:21:40 +05:30
mkdocs.yml docs: general documentation rework 2019-09-06 13:44:24 -04:00
README.md docs: Update broken link in README.md (#20307) 2026-01-06 15:52:57 -05:00
relyance.yaml chore(ci): Add relyance scanner (#17777) 2025-05-21 13:17:49 +00:00

Loki Logo

Check Go Report Card Slack Fuzzing Status

Loki: like Prometheus, but for logs.

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.

Compared to other log aggregation systems, Loki:

  • does not do full text indexing on logs. By storing compressed, unstructured logs and only indexing metadata, Loki is simpler to operate and cheaper to run.
  • indexes and groups log streams using the same labels youre already using with Prometheus, enabling you to seamlessly switch between metrics and logs using the same labels that youre already using with Prometheus.
  • is an especially good fit for storing Kubernetes Pod logs. Metadata such as Pod labels is automatically scraped and indexed.
  • has native support in Grafana (needs Grafana v6.0).

A Loki-based logging stack consists of 3 components:

  • Alloy is agent, responsible for gathering logs and sending them to Loki.
  • Loki is the main service, responsible for storing logs and processing queries.
  • Grafana for querying and displaying the logs.

Note that Alloy replaced Promtail in the stack, because Promtail is considered to be feature complete, and future development for logs collection will be in Grafana Alloy.

Loki is like Prometheus, but for logs: we prefer a multidimensional label-based approach to indexing, and want a single-binary, easy to operate system with no dependencies. Loki differs from Prometheus by focusing on logs instead of metrics, and delivering logs via push, instead of pull.

Getting started

Upgrading

Documentation

Commonly used sections:

Getting Help

If you have any questions or feedback regarding Loki:

Your feedback is always welcome.

Further Reading

Contributing

Refer to CONTRIBUTING.md

Building from source

Loki can be run in a single host, no-dependencies mode using the following commands.

You need an up-to-date version of Go, we recommend using the version found in our Makefile

# Checkout source code
$ git clone https://github.com/grafana/loki
$ cd loki

# Build binary
$ go build ./cmd/loki

# Run executable
$ ./loki -config.file=./cmd/loki/loki-local-config.yaml

Alternatively, on Unix systems you can use make to build the binary, which adds additional arguments to the go build command.

# Build binary
$ make loki

# Run executable
$ ./cmd/loki/loki -config.file=./cmd/loki/loki-local-config.yaml

To build Promtail on non-Linux platforms, use the following command:

$ go build ./clients/cmd/promtail

On Linux, Promtail requires the systemd headers to be installed if Journal support is enabled. To enable Journal support the go build tag flag promtail_journal_enabled should be passed

With Journal support on Ubuntu, run with the following commands:

$ sudo apt install -y libsystemd-dev
$ go build --tags=promtail_journal_enabled ./clients/cmd/promtail

With Journal support on CentOS, run with the following commands:

$ sudo yum install -y systemd-devel
$ go build --tags=promtail_journal_enabled ./clients/cmd/promtail

Otherwise, to build Promtail without Journal support, run go build with CGO disabled:

$ CGO_ENABLED=0 go build ./clients/cmd/promtail

Adopters

Please see ADOPTERS.md for some of the organizations using Loki today. If you would like to add your organization to the list, please open a PR to add it to the list.

License

Grafana Loki is distributed under AGPL-3.0-only. For Apache-2.0 exceptions, see LICENSING.md.