- Documentation
- Learning Hub
- Section 4 of 5 Apply labeling strategy to logs
Labels tell you where
Slide 1 of 5
Labels tell you where
Loki, which powers Grafana Cloud Logs, takes the idea of a fewest labels principle further than metrics by indexing only your labels, not the log content, so every label combination splits your logs into another stream to index and store.
Good log labels describe the origin or context of the log; for example, application, namespace, environment, cluster, or region. These are static, bounded, and what you actually filter by when you start a search. Loki performs best with few labels, and the fewer streams you create, the smaller the index and the faster your queries.