Like Prometheus, but for logs.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
loki/docs/sources/setup/install/install-from-source.md

36 lines
856 B

---
title: Build from source
menuTitle: Install from source
description: Describes how to install Loki from the source code.
aliases:
- ../../installation/install-from-source/
weight: 700
---
# Build from source
Clone the Grafana Loki repository and use the provided `Makefile`
to build Loki from source.
## Prerequisites
- [Go](https://golang.org/), version 1.22 or later;
set your `$GOPATH` environment variable
- `make`
- Docker (for updating protobuf and yacc files)
## Build locally
1. Clone Loki to `$GOPATH/src/github.com/grafana/loki`:
```bash
git clone https://github.com/grafana/loki $GOPATH/src/github.com/grafana/loki
```
2. With a current working directory of `$GOPATH/src/github.com/grafana/loki`:
```bash
make loki
```
The built executable will be in `$GOPATH/src/github.com/grafana/loki/cmd/loki/loki`.