macOS
brew install logclilocal Homebrew formula metadata
brew
Run LogQL queries against a Loki server. Version 3.7.3 via Homebrew; verified 2026-06-26.
install
brew install logclilocal Homebrew formula metadata
sudo pacman -S logcliArch Linux sync databases · logcli · source: geo.mirror.pkgbuild.com
sudo zypper install logcliopenSUSE Tumbleweed package metadata · logcli · source: download.opensuse.org
scoop install main/logcliScoop official bucket manifest trees · bucket/logcli.json · source: api.github.com
overview
Run LogQL queries against a Loki server
history
logcli is Grafana Loki's command-line client for running LogQL queries, inspecting labels and series, and using Loki from scripts or terminal workflows.
logcli is developed inside the Grafana Loki repository. Loki itself is described by Grafana as a horizontally scalable, highly available, multi-tenant log aggregation system inspired by Prometheus, designed to index labels rather than full log contents.
Grafana introduced Loki publicly in 2018 as Prometheus-inspired logging for cloud-native systems, and GitHub release metadata records the v0.1.0 beta in June 2019. logcli became the terminal-facing companion to that stack, giving users a way to query Loki without Grafana's web UI.
logcli's adoption follows Loki adoption. The Loki README points to an ADOPTERS.md file listing organizations using Loki, including Grafana Labs, Red Hat, Dropbox, ASML, and others. Package metadata in this batch shows logcli distributed through Homebrew, Arch, Scoop, and openSUSE.
In operational teams, logcli fills the same niche that `curl`, `kubectl logs`, and Prometheus query CLIs fill elsewhere: repeatable shell access to observability data, useful for incident response, automation, and checking label cardinality or query volume.
Grafana's documentation describes logcli as a query tool, not an ingestion tool. Users set `LOKI_ADDR` or `--addr`, optionally provide username/password, bearer token, tenant id, certificate paths, or proxy settings, and run commands such as `query`, `labels`, `series`, `stats`, and `volume`.
The docs recommend matching the logcli version to the Loki server version and downloading binaries from Loki releases or building `cmd/logcli/logcli` from the Loki source tree.
logcli is package-nerd significant because it packages a small, scriptable interface to a much larger observability system. Homebrew and other package managers let operators install only the query client without deploying Loki locally, which is exactly the sort of CLI split that package ecosystems are good at.
security posture
No matching local secret-handling manifest was found for logcli. Nucleus package metadata is still published here so future coverage has a stable package URL.
Before unattended agent use, check whether the tool reads plaintext credentials, writes remote state, publishes artifacts, or shells out to plugins.
executables
| Command | Kind | Exposure | Note |
|---|---|---|---|
logcli | cli | global executable |
freshness
These signals separate page generation age, package-manager activity, and upstream release comparison. Version lag is warned only when an evidence URL and comparable versions are present.
https://github.com/grafana/loki
install metadata
| Package key | brew:logcli |
|---|---|
| Version | 3.7.3 |
| Package manager | Homebrew |
| Package manager page | https://formulae.brew.sh/formula/logcli |
| Homepage | https://grafana.com/oss/loki |
| Repository | https://github.com/grafana/loki |
| Upstream docs | https://grafana.com/docs/loki/latest/query/logcli |
| License | AGPL-3.0-only |
| Source archive | https://github.com/grafana/loki/archive/refs/tags/v3.7.3.tar.gz |
| Last updated | 2026-06-26T00:47:42Z |
| Pulse | updated |
| Build dependencies | go |
| Bottle | available (on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux) |
| Homebrew post-install | not defined |
| Service | none declared |
registry facts
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | logcli |
| Version Scheme | 0 |
| Revision | 0 |
| Head Version | HEAD |
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | no |
| Disabled | no |
| Keg Only | no |
| URL Keys |
|
source database matches
Matches are pulled from external package-manager indexes and kept separate from local Automic Vault package links.
logcli 3.6.6-1
A command-line for loki
https://github.com/grafana/loki
sudo pacman -S logclilogcli 3.7.2-1.1
LogCLI tool
sudo zypper install logclimain/logcli
scoop install main/logclisource trail
This page is generated by av-web from the private package SQLite artifact built by scripts/generate-pkg-sqlite.py.
View the package source record on GitHub.