authoring-logql-and-analyzing-logs
Authors, lints, cost-checks, optimizes, and executes Grafana Loki LogQL log and metric queries using the 4-stage pipeline order (stream selector, line filter, parser, metadata/unwrap), index scan preflight checks, CIDR/pattern filters, and interactive A2UI views. Use when writing or optimizing LogQL queries, computing log error ratios or unwrap latency percentiles, filtering Loki 3.x structured metadata, fixing SampleExtractionErr or slow scans, or rendering A2UI log tables and charts. Do not use for Ruler/AlertingRule alert creation (use authoring-loki-alerting-and-recording-rules), schema/pattern discovery on unknown logs (use discovering-loki-schema-and-log-structure), multi-service incident triage (use triaging-loki-incidents-and-errors), or Prometheus PromQL queries (use authoring-promql-and-analyzing-metrics).
- Version
- 0.2.0
- License
- Apache-2.0
Pinned to revision e93452925e25, so it is the text this page describes rather than whatever the author pushed since.
Files
- skills/authoring-logql-and-analyzing-logs/SKILL.md
- skills/authoring-logql-and-analyzing-logs/references/logql-syntax-and-functions.md
- skills/authoring-logql-and-analyzing-logs/references/query-templates-and-anti-patterns.md
- skills/authoring-logql-and-analyzing-logs/scripts/lint_logql.py
Every link opens the file at its source, pinned to the revision this page describes.