loki-troubleshoot

Community

Efficiently query Loki logs with precise LogQL.

Authortimbuchinger
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill helps you craft efficient LogQL queries for Grafana Loki, preventing expensive or overly broad log scans. It ensures you can quickly find relevant log entries for debugging and analysis, saving time and resources.

Core Features & Use Cases

  • Efficient LogQL Query Building: Guides in constructing precise LogQL queries using label-based filtering and narrow time windows.
  • Log Debugging: Helps you quickly find errors, specific request IDs, or other critical events within your log streams.
  • Performance Optimization: Provides best practices to avoid high-cardinality labels, regex-heavy queries, and un-pre-filtered JSON parsing.
  • Use Case: You need to find all 500 errors in your 'orders' service in production from the last 2 hours. This Skill helps you craft an efficient LogQL query using appropriate labels and time ranges to quickly retrieve the relevant logs.

Quick Start

Craft a LogQL query to find logs for request_id abc123 in the 'payments' service in staging over the past 30 minutes.

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: loki-troubleshoot
Download link: https://github.com/timbuchinger/loadout/archive/main.zip#loki-troubleshoot

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