Loki configuration fails validation when retention is enabled, leading to crash loop in RHOCP 4

Solution Verified - Updated -

Issue

  • Loki pods are in CrashLoopBackOff with the error message:

    level=error ts=2024-07-17T17:01:27.523133793Z caller=main.go:70 msg="validating config" err="CONFIG ERROR: invalid compactor config: compactor.delete-request-store should be configured when retention is enabled"
    

Environment

  • Red Hat OpenShift Container Platform (RHOCP)
    • 4
  • Red Hat OpenShift Logging (RHOL)
    • 5.6.21
    • 5.8.9
  • Lokistack
  • Loki

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content