Automic VaultAutomic Vault

brew

Install loki with Homebrew, apk, apt, Nix, pacman, zypper

Horizontally-scalable, highly-available log aggregation system. Version 3.7.3 via Homebrew; verified 2026-06-26.

install

Additional install commands

macOS

Homebrewverified · 100%
brew install loki

local Homebrew formula metadata

Linux

Alpine Linux apkverified · 92%
sudo apk add loki

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

Debian aptverified · 92%
sudo apt install loki

Debian stable package indexes · loki · source: deb.debian.org

Nixverified · 92%
nix profile install nixpkgs#loki

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

Arch Linux pacmanverified · 92%
sudo pacman -S loki

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

openSUSE zypperverified · 92%
sudo zypper install logcli

openSUSE Tumbleweed package metadata · logcli · source: download.opensuse.org

overview

Package summary

Horizontally-scalable, highly-available log aggregation system

Commands and aliases

  • loki

history

Project history and usage

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.

Project history

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.

Adoption history

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.

How it is used

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.

Why package nerds care

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.

Timeline

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

security posture

Risk level: orange

formula declares a Homebrew service.

Risk classifier

orange risk · medium confidence · infrastructure

Why

  • formula declares a Homebrew service

Signals

  • metadata:service

Install behavior

  • No Homebrew post-install hook is recorded in formula metadata.
  • Formula metadata declares a service or daemon block.
  • Homebrew bottle metadata is available for 6 platform targets.
  • Build metadata lists 1 build dependencies.

Recommended review

Before unattended agent use, check whether the tool reads plaintext credentials, writes remote state, publishes artifacts, or shells out to plugins.

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

executables

Installed executables

CommandKindExposureNote
lokicliglobal executable

freshness

Version and 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.

page generated2026-07-08
manager version3.7.3
manager updated2026-06-26
local dataok
upstreamcurrent
latest detectedv3.7.3

https://github.com/grafana/loki

  • okNo freshness warnings were generated.

install metadata

Package metadata

Package keybrew:loki
Version3.7.3
Package managerHomebrew
Package manager pagehttps://formulae.brew.sh/formula/loki
Homepagehttps://grafana.com/oss/loki
Repositoryhttps://github.com/grafana/loki
Upstream docshttps://grafana.com/docs/loki/latest
LicenseAGPL-3.0-only
Source archivehttps://github.com/grafana/loki/archive/refs/tags/v3.7.3.tar.gz
Last updated2026-06-26T00:47:42Z
Pulseupdated
Build dependenciesgo
Bottleavailable (on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux)
Homebrew post-installnot defined
Servicedeclared

registry facts

Source database details

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

source database matches

Other package-manager records

Matches are pulled from external package-manager indexes and kept separate from local Automic Vault package links.

Debian apt95%

loki 2.4.7.4-12

MCMC linkage analysis on general pedigrees

sudo apt install loki
  • Section: science
  • Architecture: amd64
  • 1 dependencies
  • 1 optional deps
  • normalized package name match
  • Matched by: 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
  • Matched by: 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
  • Matched by: 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 dependencies
  • 1 optional deps
  • normalized package name match
  • Matched by: 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
  • Matched by: 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 dependencies
  • 1 provides
  • normalized package name match
  • Matched by: 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 dependencies
  • 1 provides
  • normalized package name match
  • Matched by: 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 dependencies
  • 1 provides
  • normalized package name match
  • Matched by: 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 dependencies
  • 1 provides
  • normalized package name match
  • Matched by: 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
  • Matched by: 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 dependencies
  • normalized package name match
  • Matched by: 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 provides
  • normalized package name match
  • Matched by: 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 dependencies
  • 2 provides
  • normalized package name match
  • Matched by: 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 provides
  • normalized package name match
  • Matched by: 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

source trail

Generated from repository data

This page is generated by av-web from the private package SQLite artifact built by scripts/generate-pkg-sqlite.py.

Used sources

  • 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