1
0
Fork 0
mirror of https://github.com/grafana/loki.git synced 2025-12-16 11:04:05 +00:00
No description
Find a file
renovate-sh-app[bot] 251cda8d25
fix(deps): update module golang.org/x/text to v0.32.0
| datasource | package           | from    | to      |
| ---------- | ----------------- | ------- | ------- |
| go         | golang.org/x/text | v0.31.0 | v0.32.0 |


Signed-off-by: renovate-sh-app[bot] <219655108+renovate-sh-app[bot]@users.noreply.github.com>
2025-12-16 10:49:15 +00:00
.cursor/rules feat: Distributed Operational UI (#16097) 2025-02-14 13:10:40 +00:00
.devcontainer chore: bump go.mod to use Go 1.25 (#19723) 2025-11-06 17:16:00 -07:00
.github fix: bump helm deps, publish loki-helm-test w/ release (#19939) 2025-12-12 10:46:01 -07:00
.vscode chore: add shared vscode launch config (#20103) 2025-12-05 09:20:56 -05:00
clients chore(deps): update logstash docker tag to v9.2.2 (main) (#20152) 2025-12-09 08:40:26 -05:00
cmd fix(deps): update module github.com/prometheus/prometheus to v0.308.0 (main) (#20131) 2025-12-05 12:16:56 -05:00
debug docs: fix Promtail / Loki capitalization (#1130) 2019-10-08 09:41:41 -04:00
docs docs: update quick start to reflect simple scalable deployment mode (#20237) 2025-12-15 14:53:53 -05: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.22.2 (main) (#19739) 2025-11-07 17:17:38 -05:00
nix chore: bump nix go to 1.25.4 (#19817) 2025-11-10 15:51:38 -07:00
operator feat(operator): add option to disable ingress (#19382) 2025-12-16 09:44:05 +00:00
pkg chore: use projection for indexobj streams reader (#20205) 2025-12-16 07:31:10 +00:00
production chore: release loki helm chart 6.49.0 (#20208) 2025-12-12 16:41:25 -05:00
tools feat: add race tolerance to query-tee (#20228) 2025-12-15 16:51:27 -07:00
vendor fix(deps): update module golang.org/x/text to v0.32.0 2025-12-16 10:49:15 +00: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
CHANGELOG.md docs: Loki 3.6 Release Notes (#19714) 2025-11-17 20:25:41 +00:00
CLAUDE.md chore: add .zed to gitignore (#20199) 2025-12-10 11:40:55 -07: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: bump nix go to 1.25.4 (#19817) 2025-11-10 15:51:38 -07:00
go.mod fix(deps): update module golang.org/x/text to v0.32.0 2025-12-16 10:49:15 +00:00
go.sum fix(deps): update module golang.org/x/text to v0.32.0 2025-12-16 10:49:15 +00: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 feat: ability to send query context for limit enforcement (#19900) 2025-11-19 17:05:30 -07:00
mkdocs.yml docs: general documentation rework 2019-09-06 13:44:24 -04:00
README.md ci: edited the broken build badge to check (#17769) 2025-05-21 14:31:31 -04: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.