---
title: "Loki | Grafana Labs"
description: "The Loki data source for logs."
---

> For a curated documentation index, see [llms.txt](/llms.txt). For the complete documentation index, see [llms-full.txt](/llms-full.txt).

# 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](https://grafana.com/docs/grafana/latest/datasources/loki/)
