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.5.2-0.1.git257d2f6.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.5.2-0.1.git257d2f6.lbn42.src.rpm
- Checksum
- 06240d4820fcff667cdbdbfef0e5c9a87a8db6c271c20479370e2445ffaa1045
- Build Date
- 2025/09/11 01:05:50
- Requires
- Provides
-
grafana-loki-logcli = 3.5.2-0.1.git257d2f6.lbn42
grafana-loki-logcli(x86-64) = 3.5.2-0.1.git257d2f6.lbn42