# Grafana Loki (/docs/foundation/components/grafana-loki)



## Component Category [#component-category]

Monitoring and debugging / logging

## Component Description [#component-description]

Grafana Loki is a log aggregation system built to collect, store, and query logs efficiently at scale.

## Why It Is Used [#why-it-is-used]

In BullSequana AI Foundation, Loki provides centralized logging for platform services, helping operators investigate incidents, correlate events, and debug runtime behavior.

## Learn More [#learn-more]

* [Grafana Loki documentation](https://grafana.com/docs/loki/latest/)
* [grafana/loki on GitHub](https://github.com/grafana/loki)

## Deployment notes [#deployment-notes]

Loki deploys in distributed mode in the `grafana-loki` namespace at sync wave 10 in the common tier. The data replication factor is three, and the ingester runs three replicas to satisfy it. The distributor, querier, compactor, and index gateway run two replicas each by default. Log chunks are stored in the configured S3-compatible object-storage backend with 30-day retention. That backend can be the in-cluster Rook-Ceph RGW service or the site's external S3 service.

## Interacts With [#interacts-with]

* `Grafana`, which uses Loki as the log data source.
* `Grafana Alloy`, which forwards Kubernetes logs into Loki.
* The configured object-storage service, which retains Loki log chunks.
