Defining retention for logs in LokiStack on RHOCP 4
Issue
- As per enabling stream-based retention with Loki, it is recommended to define
retention
period underspec.limits.global.retention
for global retention andspec.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.