What problem does it solve?
This Skill helps you query Loki logs using LogQL with patterns optimized for correlation tracing, error investigation, and service debugging. It provides practical templates and guidance for extracting correlation IDs, filtering by service, and parsing JSON fields, reducing time spent hunting through logs.
Core Features & Use Cases
- Correlation ID Tracing: Find logs across services that share the same correlation ID.
- Error Investigation: Pattern-based queries to surface errors with context.
- Service-Specific Queries: Filter by container or service to narrow results.
- Promtail Labeling Guidance: Learn how labels affect query performance and organization.
- Grafana & Loki Integration: Use queries in Grafana panels or Loki API.
Quick Start
Run a Loki query in Grafana or Loki API using a sample correlation_id value. Example: {container=~"huleedu_.*"} |= "correlation_id_value" and refine the container or service labels as needed to isolate results across the stack.