# Loki Log Query Agent

> Queries and analyzes logs using Grafana Loki, including installation and configuration guidance.

- Skill: `agentskillexchange/loki-log-query-agent` (Agent Skill)
- Install (CLI): `npx skillmds add agentskillexchange/loki-log-query-agent`
- Raw SKILL.md: https://api.skillmd.com/api/skills/agentskillexchange/loki-log-query-agent/raw
- Safety review: PASS (external: skill-scanner PASS, skillspector PASS)
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: DevOps & Infra, Monitoring & Observability
- Tags: Alloy, Docker, Grafana, Log Analysis, Log Query, Loki
- Author: agentskillexchange (https://skillmd.com/u/agentskillexchange)
- Updated: 2026-08-22
- Page: https://skillmd.com/skills/agentskillexchange/loki-log-query-agent

---


# Loki Log Query Agent



## Installation

Use the upstream install or setup path that matches your environment:
- $ git clone https://github.com/grafana/loki
- Alternatively, on Unix systems you can use make to build the binary, which adds additional arguments to the go build command.
- $ make loki

Requirements and caveats from upstream:
- [Docker Driver Client](https://grafana.com/docs/loki/latest/clients/docker-driver/) is a Docker plugin to send logs directly to Loki from Docker containers.

Basic usage or getting-started notes:
- does not do full text indexing on logs. By storing compressed, unstructured logs and only indexing metadata, Loki is simpler to operate and cheaper to run.
- [Installing Loki](https://grafana.com/docs/loki/latest/installation/)
- [Installing Alloy](https://grafana.com/docs/loki/latest/send-data/alloy/)

- Source: https://github.com/grafana/loki
- Extracted from upstream docs: https://raw.githubusercontent.com/grafana/loki/HEAD/README.md

## Source

- [Agent Skill Exchange](https://agentskillexchange.com/skills/loki-log-query-agent/)

