LogCLI also allows users to run LogQL queries against a Loki server
If you are running on Grafana Cloud, use:
$ export GRAFANA_ADDR=https://logs-us-west1.grafana.net
$ export GRAFANA_USERNAME=<username>
$ export GRAFANA_PASSWORD=<password>
Otherwise you can point LogCLI to a local instance directly without needing a username and password:
$ export GRAFANA_ADDR=http://localhost:3100
Note: If you are running Loki behind a proxy server and you have authentication configured, you will also have to pass in GRAFANA_USERNAME and GRAFANA_PASSWORD accordingly.
$ logcli labels job
https://logs-dev-ops-tools1.grafana.net/api/prom/label/job/values
cortex-ops/consul
cortex-ops/cortex-gw
- RPM
- grafana-loki-logcli-3.6.7-0.1.git7e1daf3.lbn42.x86_64.rpm
- Summary
- LogCLI also allows users to run LogQL queries against a Loki server
- URL
- http://github.com/grafana/loki
- Group
- Unspecified
- License
- APL 2.0
- Source
-
grafana-loki-3.6.7-0.1.git7e1daf3.lbn42.src.rpm
- Checksum
- 2ed52d447631affac03bc9ba843e0e88a08cf8be8b97bdbce8bb9f520721eb4c
- Signing Signature
- RSA/SHA512, Sun 05 Apr 2026 07:38:16 PM AEST, Key ID d760880122ab8392
- Build Date
- 2026/03/09 20:04:03
- Requires
- Provides
-
grafana-loki-logcli = 3.6.7-0.1.git7e1daf3.lbn42
grafana-loki-logcli(x86-64) = 3.6.7-0.1.git7e1daf3.lbn42