{
  "tc": "TC3",
  "run": "2026-09-28-r3-terra",
  "verified_on": "2026-09-11",
  "question": "In Loki, the log aggregation system from Grafana Labs, which configuration block does retention_enabled have to be set in for old log data to actually be deleted?",
  "answer_text": "Set it under the **`compactor`** block:\n\n```yaml\ncompactor:\n  retention_enabled: true\n```\n\n`limits_config.retention_period` defines *how long* to retain data, but the Compactor must have `retention_enabled: true` to actually enforce retention and delete expired log chunks. ([grafana.com](https://grafana.com/docs/loki/latest/?utm_source=openai))",
  "claim": "Loki retention needs retention_enabled: true under the compactor block",
  "answer_key": "The compactor block. Verbatim: \"`retention_enabled: true` must be set under the `compactor` block, not just in `limits_config`.\" (FAQ \"Why isn't my log retention policy deleting old data?\", bottom third of the page.)",
  "n_citations": 1,
  "citations": [
    {
      "n": 1,
      "url": "https://grafana.com/docs/loki/latest/?utm_source=openai",
      "title_from_tavily": "Grafana Loki | Grafana Loki documentation",
      "http_status": 200,
      "final_url": "https://grafana.com/docs/loki/latest/?utm_source=openai",
      "redirected": false,
      "content_type": "text/html",
      "bytes": 194215,
      "page_title": "Grafana Loki | Grafana Loki documentation",
      "state": "reachable",
      "error": null,
      "primary_token_present": true,
      "secondary_token_present": true,
      "supports": "unjudged",
      "snippets": [
        ", which can cause alerts to flap or never resolve correctly. Why isn’t my log retention policy deleting old data? Retention in Loki is handled by the Compactor , not by the ingester or storage backend directly. A few common reasons why old data persists even after configuring a retention period: retention_en",
        "backend directly. A few common reasons why old data persists even after configuring a retention period: retention_enabled: true must be set under the compactor block, not just in limits_config . The Compactor must be running. In monolithic deployments it is sometimes inadvertently disabled. Deletion is not i",
        "ta persists even after configuring a retention period: retention_enabled: true must be set under the compactor block, not just in limits_config . The Compactor must be running. In monolithic deployments it is sometimes inadvertently disabled. Deletion is not immediate. The Compactor runs on a schedule and on"
      ],
      "snapshot": "_round2/evidence/citations/TC3/01-grafana.com.html"
    }
  ],
  "method": "Every citation URL opened with a browser user-agent, redirects followed, raw page snapshotted. Token presence is raw material only; the support judgement is made by reading the snippets, per V1's rule that it is a meaning judgement and never a word match."
}