Thank you for your response. From what I understand, Grafana Loki has a feature (e.g., compactor) that allows the preservation of chunks and indexes. This feature keeps the chunks for a specified amount of time.
What I am looking for is a way to have the chunks deleted after 7 days and to back up the logs for those 7 days separately, so that even after time has passed, the 7-day logs can be re-uploaded and reviewed. Is there a feature that supports this?
Your description is a bit weird. Compactor doesn’t “preserve” chunks and indexes. Chunks and index files are stored in the backend storage indefinitely. Compactor is the component that removes chunks and index files after a configured retention period.
In my opinion if you wish to keep logs up to potentially 14 days it’s simply much easier and cheaper to just keep them for 14 days in storage solution such as S3, rather than having to figure out another storage solution (which is most likely not free), and in the event that you need to restore it you’ll likely spend more engineering hours than what it takes to store 14-day worth of logs.