In this document, it says
With the exception of the filesystem chunk store, Loki will not delete old chunk stores. This is generally handled instead by configuring TTLs (time to live) in the chunk store of your choice (bucket lifecycles in S3/GCS, and TTLs in Cassandra). Neither will Loki currently delete old data when your local disk fills when using the filesystem chunk store – deletion is only determined by retention duration.
Which means if I want to set a retention of 90days for my logs, I have to setup my S3 Lifecycle to delete 90d+ old files.
However, after this paragraph, the document mentions this link to another article to configure the retention by using the compactor.
What is the right choice then?
S3 Lifecycle only?
Loki retention only?
Both?
Thanks