Grafana Loki LogCLI

Community

Query Grafana Loki logs with the LogCLI tool.

Authornarqo
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill makes it easy to query and explore logs stored in Grafana Loki using the logcli CLI, enabling fast troubleshooting and incident analysis.

Core Features & Use Cases

  • Timezone control: Use -z UTC to ensure UTC time in output.
  • Output formats: Default to raw; use -o jsonl for jsonl.
  • Full fetch: Use --limit 0 to retrieve all logs.
  • Environment switching: Query ops or dev Loki instances by changing the --addr.
  • Flexible queries: Run arbitrary LogQL queries against Loki.

Quick Start

Query all info-level logs from the 'compactor' container in namespace 'mimir-dev-14' on the ops Loki instance for a specific time range, using logcli and saving to a temporal file for offline analysis.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: Grafana Loki LogCLI
Download link: https://github.com/narqo/dotfiles/archive/main.zip#grafana-loki-logcli

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository