Section 2 · Common data sources

The Loki data source for logs.

Estimated time: 1 min

Loki: Cost-effective log aggregation

What it’s for: Logs including application logs, system logs, and audit trails.

Good to know

  • Query language: LogQL, which is similar to PromQL
  • Loki indexes labels rather than full log content, which lowers storage cost. You filter by labels first, then search within that subset, instead of running arbitrary full-text search.
  • It shares Prometheus’s label model, so your Prometheus labels carry over.

Best for

  • Teams already using Prometheus
  • Cost-conscious log aggregation
  • Correlating logs with metrics

Documentation

View the full documentation.

Loki data source