Menu
Open source
Build from source
Clone the Grafana Loki repository and use the provided Makefile
to build Loki from source.
Prerequisites
- Go, version 1.14 or later;
set your
$GOPATH
environment variable make
- Docker (for updating protobuf and yacc files)
Build locally
Clone Loki to
$GOPATH/src/github.com/grafana/loki
:bashgit clone https://github.com/grafana/loki $GOPATH/src/github.com/grafana/loki
With a current working directory of
$GOPATH/src/github.com/grafana/loki
:bashmake loki
The built executable will be in $GOPATH/src/github.com/grafana/loki/cmd/loki/loki
.
Was this page helpful?
Related resources from Grafana Labs
Additional helpful documentation, links, and articles:

Getting started with logging and Grafana Loki
See a demo of the updated features in Loki, and how to create metrics from logs and alert on your logs with powerful Prometheus-style alerting rules.

Essential Grafana Loki configuration settings
This webinar focuses on Grafana Loki configuration including agents Promtail and Docker; the Loki server; and Loki storage for popular backends.

Scaling and securing your logs with Grafana Loki
This webinar covers the challenges of scaling and securing logs, and how Grafana Enterprise Logs powered by Grafana Loki can help, cost-effectively.