discovering-loki-schema-and-log-structure
Discovers Grafana Loki indexed stream labels, scoped label values, active stream combinations, Loki 3.x detected fields/structured metadata, OTLP log mappings, Promtail unpack envelopes, and repeating log patterns to infer optimal LogQL parsers. Use when exploring an unfamiliar Loki cluster or tenant, onboarding services, locating OTLP resource/log attributes, or inferring pattern/logfmt/json/unpack/regexp parsers for raw log lines. Do not use for executing LogQL analytics or A2UI charts (use authoring-logql-and-analyzing-logs), auditing stream cardinality FinOps (use optimizing-loki-cardinality-and-finops), incident triage (use triaging-loki-incidents-and-errors), or Tempo trace attribute discovery (use authoring-traceql-and-metrics-queries).
- 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/discovering-loki-schema-and-log-structure/SKILL.md
- skills/discovering-loki-schema-and-log-structure/references/pattern-parser-and-extraction-guide.md
- skills/discovering-loki-schema-and-log-structure/references/structured-metadata-and-otlp.md
- skills/discovering-loki-schema-and-log-structure/scripts/infer_log_parser.py
Every link opens the file at its source, pinned to the revision this page describes.