loki

Query and analyze logs using Loki and LogQL.

Updated Mar 18, 2026
One-click install
npx skills add https://github.com/Canepro/codex-skills --skill loki-canepro
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: loki
Source: https://github.com/Canepro/codex-skills/tree/main/skills/loki
Command: npx skills add https://github.com/Canepro/codex-skills --skill loki-canepro

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Grafana Loki provides a cost-efficient, scalable solution for collecting, indexing, and querying logs by metadata, enabling fast investigation without indexing full log text.

Core Features & Use Cases

  • Centralized log querying with LogQL across services and environments
  • Parsers and operators for JSON, logfmt, pattern, regexp, and unpack
  • Observability workflow: ingestion, labeling, and structured drilldown of log data
  • Troubleshooting and performance monitoring for distributed systems

Quick Start

Install Loki and begin querying your logs with LogQL to validate configurations and troubleshoot pipelines.

Frequently Asked Questions about loki

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I query and analyze logs using LogQL across Kubernetes and cloud environments?

You can query and analyze logs using LogQL by applying label matching and line filtering to troubleshoot distributed systems. This approach supports centralized log querying across Kubernetes, cloud services, and on-prem environments to build observability dashboards.

What parsers does LogQL support for structured log analysis?

LogQL supports json, logfmt, pattern, regexp, and unpack parsers for structured log analysis. These parsers enable you to extract and filter specific fields from log lines to perform detailed log-based investigations and diagnose issues.

When do I need metadata indexing instead of full text indexing for log observability?

Metadata indexing is needed when you require a cost-efficient and scalable solution for fast log investigation. By indexing logs using metadata rather than full text, you can collect and query logs quickly without the overhead of indexing entire log lines.

Can I use Loki for centralized log troubleshooting in on-prem environments?

Yes, you can use Loki for centralized log troubleshooting in on-prem environments. Loki applies ingestion, labeling, and structured drilldown of log data to diagnose issues and monitor performance across both cloud services and on-prem infrastructure.

What is the best way to build observability dashboards for distributed system logs?

The best way to build observability dashboards for distributed systems is by using LogQL to query ingested logs. Applying label matching and line filtering to your log data enables structured drilldowns and performance monitoring across services.

Why does my LogQL query fail to parse JSON logs correctly?

Your LogQL query may fail to parse JSON logs if the structured log line does not match the expected format. Using the correct json parser within your LogQL query ensures proper field extraction and accurate log analysis during troubleshooting.