Automic VaultAutomic Vault

brew

使用 Homebrew, apk, apt, Nix, pacman, zypper 安装 loki

查看 loki 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

安装

其他安装命令

macOS

Homebrew已验证 · 100%
brew install loki

local Homebrew formula metadata

Linux

Alpine Linux apk已验证 · 92%
sudo apk add loki

Alpine Linux edge package indexes · loki · 来源: dl-cdn.alpinelinux.org

Debian apt已验证 · 92%
sudo apt install loki

Debian stable package indexes · loki · 来源: deb.debian.org

Nix已验证 · 92%
nix profile install nixpkgs#loki

nixpkgs package indexes · pkgs/by-name/lo/loki/package.nix · 来源: api.github.com

Arch Linux pacman已验证 · 92%
sudo pacman -S loki

Arch Linux sync databases · loki · 来源: geo.mirror.pkgbuild.com

openSUSE zypper已验证 · 92%
sudo zypper install loki

openSUSE 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.

时间线

  • 2018: Loki project starts at Grafana Labs and is announced at KubeCon Seattle.
  • 2019: Grafana Labs announces Loki 1.0 general availability.
  • 2022: Grafana Labs describes Loki as its second most popular OSS project behind Grafana.
  • 2026: Loki 3.7.x releases are active in the official GitHub repository.

Related projects

  • Loki is designed to pair with Grafana for visualization and with Prometheus-style labels for correlation with metrics.
  • Promtail was the original log collection agent in many Loki deployments, while Grafana Alloy is now the recommended forward-looking collector in the README.

安全态势

风险级别:orange

formula declares a Homebrew service.

风险分类器

orange 风险 · 中 置信度 · infrastructure

原因

  • formula declares a Homebrew service

信号

  • metadata:service

安装行为

  • formula 元数据中未记录 Homebrew post-install 钩子。
  • formula 元数据声明了服务或守护进程块。
  • Homebrew bottle 元数据适用于 6 个平台目标。
  • 构建元数据列出 1 个构建依赖。

建议审查

在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。

local files

Configuration and credential file locations

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.

Configuration files

Config paths the tool may read or write during local use.

Unix
./config.yaml./config/config.yamlloki.yaml

可执行文件

已安装的可执行文件

命令类型暴露范围备注
lokicli全局可执行文件

新鲜度

版本和新鲜度

这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。

页面生成时间2026-07-25
管理器版本3.7.4
管理器更新时间2026-07-24
本地数据OK
上游当前
检测到的最新版本v3.7.4

https://github.com/grafana/loki

  • OK没有生成新鲜度警告。

安装元数据

软件包元数据

软件包键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
Pulseupdated
构建依赖go
Bottle可用 (于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux)
Homebrew post-install未定义
服务declared

注册表事实

源数据库详情

Source DatabaseHomebrew formula API
Taphomebrew/core
Full Nameloki
Version Scheme0
Revision0
Head VersionHEAD
Bottle Stable Root URLhttps://ghcr.io/v2/homebrew/core
Deprecatedno
Disabledno
Keg Onlyno
URL Keys
  • head
  • stable

源数据库匹配

其他软件包管理器记录

匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。

Debian apt95%

loki 2.4.7.4-12

MCMC linkage analysis on general pedigrees

sudo apt install loki
  • Section: science
  • Architecture: amd64
  • 1 依赖
  • 1 可选依赖
  • normalized package name match
  • 匹配方式:Loki
Debian stable package indexes · deb.debian.org · Debian stable package indexes: loki from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt95%

loki-doc 2.4.7.4-12

MCMC linkage analysis on general pedigrees (PS manual)

sudo apt install loki-doc
  • Section: doc
  • Architecture: all
  • Source Package: loki
  • normalized package name match
  • 匹配方式:Loki
Debian stable package indexes · deb.debian.org · Debian stable package indexes: loki-doc from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Nix95%

loki

nix profile install nixpkgs#loki
  • normalized package name match
  • 匹配方式:Loki
nixpkgs package indexes · api.github.com · nixpkgs package indexes: pkgs/by-name/lo/loki/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
Ubuntu apt95%

loki 2.4.7.4-10

MCMC linkage analysis on general pedigrees

sudo apt install loki
  • Section: universe/science
  • Architecture: amd64
  • 1 依赖
  • 1 可选依赖
  • normalized package name match
  • 匹配方式:Loki
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: loki from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
Ubuntu apt95%

loki-doc 2.4.7.4-10

MCMC linkage analysis on general pedigrees (PS manual)

sudo apt install loki-doc
  • Section: universe/science
  • Architecture: all
  • Source Package: loki
  • normalized package name match
  • 匹配方式:Loki
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: loki-doc from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
apk95%

loki 3.7.2-r0

Like Prometheus, but for logs

https://github.com/grafana/loki

sudo apk add loki
  • License: AGPL-3.0-or-later
  • Architecture: x86_64
  • Source Package: loki
  • 1 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式:Loki
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: loki from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
apk95%

loki-canary 3.7.2-r0

Loki auditing program

https://github.com/grafana/loki

sudo apk add loki-canary
  • License: AGPL-3.0-or-later
  • Architecture: x86_64
  • Source Package: loki
  • 1 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式:Loki
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: loki-canary from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
apk95%

loki-logcli 3.7.2-r0

Loki log client

https://github.com/grafana/loki

sudo apk add loki-logcli
  • License: AGPL-3.0-or-later
  • Architecture: x86_64
  • Source Package: loki
  • 1 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式:Loki
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: loki-logcli from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
apk95%

loki-lokitool 3.7.2-r0

Tool for interracting with Loki rules

https://github.com/grafana/loki

sudo apk add loki-lokitool
  • License: AGPL-3.0-or-later
  • Architecture: x86_64
  • Source Package: loki
  • 1 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式:Loki
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: loki-lokitool from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
apk95%

loki-openrc 3.7.2-r0

Like Prometheus, but for logs (OpenRC init scripts)

https://github.com/grafana/loki

sudo apk add loki-openrc
  • License: AGPL-3.0-or-later
  • Architecture: x86_64
  • Source Package: loki
  • normalized package name match
  • 匹配方式:Loki
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: loki-openrc from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
pacman95%

loki 3.6.6-1

like Prometheus, but for logs

https://github.com/grafana/loki

sudo pacman -S loki
  • License: AGPL-3.0-only AND Apache-2.0
  • Architecture: x86_64
  • 1 依赖
  • normalized package name match
  • 匹配方式:Loki
Arch Linux sync databases · geo.mirror.pkgbuild.com · Arch Linux sync databases: loki from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz
zypper95%

logcli 3.7.2-1.1

LogCLI tool

https://grafana.com/loki

sudo zypper install logcli
  • License: Apache-2.0
  • Category: System/Monitoring
  • Architecture: x86_64
  • Source Package: loki
  • 1 提供
  • normalized package name match
  • 匹配方式:Loki
openSUSE Tumbleweed package metadata · download.opensuse.org · openSUSE Tumbleweed package metadata: logcli from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst
zypper95%

loki 3.7.2-1.1

Loki: like Prometheus, but for logs

https://grafana.com/loki

sudo zypper install loki
  • License: Apache-2.0
  • Category: System/Monitoring
  • Architecture: x86_64
  • Source Package: loki
  • 7 依赖
  • 2 提供
  • normalized package name match
  • 匹配方式:Loki
openSUSE Tumbleweed package metadata · download.opensuse.org · openSUSE Tumbleweed package metadata: loki from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst
zypper95%

lokitool 3.7.2-1.1

A command-line tool to manage Loki

https://grafana.com/loki

sudo zypper install lokitool
  • License: Apache-2.0
  • Category: System/Monitoring
  • Architecture: x86_64
  • Source Package: loki
  • 1 提供
  • normalized package name match
  • 匹配方式:Loki
openSUSE Tumbleweed package metadata · download.opensuse.org · openSUSE Tumbleweed package metadata: lokitool from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst

来源线索

由仓库数据生成

此页面由 av-webscripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。

使用的来源

  • Geiger risk classifier
  • Nucleus package database
  • av.db category and tag curation
  • cross-ecosystem install command graph
  • curated configuration and credential file locations
  • curated package history
  • external package-manager database matches
  • package relationship graph
  • package version freshness
  • package-page enrichment