Important: This documentation is about an older version. It's relevant only to the release noted, many of the features and functions have been updated or replaced. Please view the current version.

Open source

Build from source

Clone the Grafana Loki repository and use the provided Makefile to build Loki from source.


  • Go, version 1.14 or later; set your $GOPATH environment variable
  • make
  • Docker (for updating protobuf and yacc files)

Build locally

  1. Clone Loki to $GOPATH/src/

    git clone $GOPATH/src/
  2. With a current working directory of $GOPATH/src/

    make loki

The built executable will be in $GOPATH/src/