macOS
brew install lokilocal Homebrew formula metadata
安装
brew install lokilocal Homebrew formula metadata
sudo apk add lokiAlpine Linux edge package indexes · loki · 来源: dl-cdn.alpinelinux.org
nix profile install nixpkgs#lokinixpkgs package indexes · pkgs/by-name/lo/loki/package.nix · 来源: api.github.com
sudo pacman -S lokiArch Linux sync databases · loki · 来源: geo.mirror.pkgbuild.com
sudo zypper install lokiopenSUSE Tumbleweed package metadata · loki · 来源: download.opensuse.org
概览
Horizontally-scalable, highly-available log aggregation system
历史
Grafana Loki is a horizontally scalable, highly available, multi-tenant log aggregation system inspired by Prometheus. Its core design indexes labels rather than full log contents, aiming to make log storage cheaper and easier to operate.
Grafana Labs started Loki in 2018 and announced it at KubeCon Seattle. The official repository was created in April 2018 and describes the project as 'like Prometheus, but for logs.'
Loki was designed around labels, compressed unstructured logs, and integration with Grafana. The README explains that a Loki-based stack includes the Loki service, Grafana for querying and visualization, and a log collection agent; current docs identify Grafana Alloy as the forward-looking agent while Promtail is considered feature complete.
Grafana announced the general availability of Loki 1.0 in November 2019. By the 3.x series, Loki had grown into one of Grafana Labs' major OSS projects, with active documentation for single-binary, simple scalable, and microservices deployment modes.
Loki's adoption followed cloud-native observability patterns: Prometheus users already had label conventions, Grafana dashboards, and a need to correlate metrics and logs without paying the storage cost of full-text log indexing.
Grafana's official OSS pages and yearly open-source recap describe Loki as a major Grafana Labs project, and the repository shows broad adoption with tens of thousands of stars, thousands of forks, active releases, and an `ADOPTERS.md` process for organizations using Loki.
The supplied package facts show package-manager availability through Homebrew, Alpine, Debian, Ubuntu, Arch, Nix, and openSUSE-related packaging, with `logcli` also packaged separately in some ecosystems.
Loki is usually launched with a YAML configuration file, commonly called `loki.yaml`, passed through `-config.file`. The official README's source build example runs `./cmd/loki/loki -config.file=./cmd/loki/loki-local-config.yaml`, and the docs show Docker examples using `/etc/loki/local-config.yaml`.
Operators send logs to Loki with agents such as Grafana Alloy, then query them from Grafana using LogQL. Loki's distinction is that labels are indexed, while log lines remain compressed payloads.
For package nerds, Loki is the observability-era package that made 'logs as Prometheus-shaped data' a concrete binary and config file. It is large enough to need Helm charts, Docker images, agents, and CLI companions, but still keeps a recognizable single-service local mode for packaging and testing.
安全态势
formula declares a Homebrew service.
orange 风险 · 中 置信度 · infrastructure
在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。
local files
These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.
Config paths the tool may read or write during local use.
./config.yaml./config/config.yamlloki.yaml可执行文件
| 命令 | 类型 | 暴露范围 | 备注 |
|---|---|---|---|
loki | cli | 全局可执行文件 |
新鲜度
这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。
https://github.com/grafana/loki
安装元数据
| 软件包键 | brew:loki |
|---|---|
| 版本 | 3.7.4 |
| 软件包管理器 | Homebrew |
| 软件包管理器页面 | https://formulae.brew.sh/formula/loki |
| 主页 | https://grafana.com/oss/loki |
| 仓库 | https://github.com/grafana/loki |
| 上游文档 | https://grafana.com/docs/loki/latest |
| 许可证 | AGPL-3.0-only |
| 源码归档 | https://github.com/grafana/loki/archive/refs/tags/v3.7.4.tar.gz |
| 最后更新 | 2026-07-24T10:29:51Z |
| Pulse | updated |
| 构建依赖 | go |
| Bottle | 可用 (于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux) |
| Homebrew post-install | 未定义 |
| 服务 | declared |
注册表事实
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | loki |
| 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 |
|
源数据库匹配
匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。
loki 2.4.7.4-12
MCMC linkage analysis on general pedigrees
sudo apt install lokiloki-doc 2.4.7.4-12
MCMC linkage analysis on general pedigrees (PS manual)
sudo apt install loki-docloki
nix profile install nixpkgs#lokiloki 2.4.7.4-10
MCMC linkage analysis on general pedigrees
sudo apt install lokiloki-doc 2.4.7.4-10
MCMC linkage analysis on general pedigrees (PS manual)
sudo apt install loki-docloki 3.7.2-r0
Like Prometheus, but for logs
https://github.com/grafana/loki
sudo apk add lokiloki-canary 3.7.2-r0
Loki auditing program
https://github.com/grafana/loki
sudo apk add loki-canaryloki-logcli 3.7.2-r0
Loki log client
https://github.com/grafana/loki
sudo apk add loki-logcliloki-lokitool 3.7.2-r0
Tool for interracting with Loki rules
https://github.com/grafana/loki
sudo apk add loki-lokitoolloki-openrc 3.7.2-r0
Like Prometheus, but for logs (OpenRC init scripts)
https://github.com/grafana/loki
sudo apk add loki-openrcloki 3.6.6-1
like Prometheus, but for logs
https://github.com/grafana/loki
sudo pacman -S lokilogcli 3.7.2-1.1
LogCLI tool
sudo zypper install logcliloki 3.7.2-1.1
Loki: like Prometheus, but for logs
sudo zypper install lokilokitool 3.7.2-1.1
A command-line tool to manage Loki
sudo zypper install lokitool来源线索
此页面由 av-web 从 scripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。
View the package source record on GitHub.