Defining retention for logs in LokiStack on RHOCP 4

Solution Verified - Updated -

Issue

  • As per enabling stream-based retention with Loki, it is recommended to define retention period under spec.limits.global.retention for global retention and spec.limits.tenants.[tenant_name].retention for tenant based retention (application, infrastructure, audit). How does this prune data from the object storage bucket?
  • Is there any other alternative way to set retention for logs storage in object storage bucket?

Environment

  • Red Hat OpenShift Container Platform (RHOCP)
    • 4
  • Red Hat OpenShift Logging (RHOL)
    • 5
    • 6
  • 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