Grafana Loki log aggregation and LogQL query language.
grafana-loki/SKILL.md
---
name: loki
license: Apache-2.0
description: >
Grafana Loki log aggregation and LogQL query language. Covers LogQL syntax (log queries, metric queries,
label matchers, line filters, parsers: json/logfmt/pattern/regexp/unpack, label filters, line_format),
Loki architecture, log ingestion via Alloy/Promtail/Fluent Bit, structured metadata, and Logs Drilldown.
Use when writing LogQL queries, configuring Loki, troubleshooting log pipelines, or analyzing logs.
---
# Grafana Loki - Log Aggregation
> **Docs**: https://grafana.com/docs/loki/latest/
Indexes only metadata (labels), not full log content — dramatically cheaper than full-text search systems.
## LogQL Quick Reference
### Log Stream Selector (required in every query)
```logql
{app="nginx"} # exact match
{app!="nginx"} # not equal
{app=~"nginx|apache"} # regex match
{app!~"debug.*"} # regex not match… load the full skill through Skill MeIf full content is available, it applies in this conversation and stays installed for future sessions.
Not connected yet? It takes about a minute.
Connect your AIOr add it to a project with the CLI
npx @skillme/cli add grafana-lokiMCP endpoint
https://skillme.dev/api/mcpUse it across a team
Pin this skill in a team library and every member's AI loads this exact version until an admin updates it.
How Teams works