Improve docs on how to install logcli from source (#5126)

* Improve docs on how to install logcli from source

Closes #5108

Signed-off-by: Christian Haudum <christian.haudum@gmail.com>

* fixup! Improve docs on how to install logcli from source

Signed-off-by: Christian Haudum <christian.haudum@gmail.com>
pull/5231/head
Christian Haudum 3 years ago committed by GitHub
parent db283da088
commit 2e6e050453
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 16
      docs/sources/getting-started/logcli.md

@ -15,12 +15,20 @@ queries against a Loki instance.
Download the `logcli` binary from the
[Loki releases page](https://github.com/grafana/loki/releases).
### From source
### Build LogCLI from source
Install `logcli` to your `$GOPATH/bin`:
Clone the Loki repository and build `logcli` from source:
```bash
git clone https://github.com/grafana/loki.git
cd loki
make logcli
```
go get github.com/grafana/loki/cmd/logcli
Optionally, move the binary into a directory that is part of your `$PATH`.
```bash
cp cmd/logcli/logcli /usr/local/bin/logcli
```
## LogCLI usage
@ -39,7 +47,7 @@ Otherwise you can point LogCLI to a local instance directly
without needing a username and password:
```bash
$ export LOKI_ADDR=http://localhost:3100
export LOKI_ADDR=http://localhost:3100
```
> Note: If you are running Loki behind a proxy server and you have

Loading…
Cancel
Save