logcli
Installation
SKILL.md
Loki LogCLI Skill
Use this skill when the task is about querying Grafana Loki logs.
Overview
- Public interface:
scripts/logcli.sh - Backend:
docker run grafana/logcli:latest - Output: JSON status envelopes + raw log lines
- Auto-chunks time ranges that exceed environment limits
Main Rule
Use only scripts/logcli.sh.
Do not call docker run grafana/logcli directly — the script handles environment resolution, auto-chunking, and error reporting.
Requirements
- Docker (with
grafana/logcli:latestimage)