I’m using Loki for syslog on a Debian 12 server and want to configure a retention period of 3 months for all syslog data. I believe I need to add compactor config to the config/yaml file similar to below
compactor:
working_directory: /data/retention
compaction_interval: 10m
retention_enabled: true
retention_delete_delay: 2h
retention_delete_worker_count: 90
delete_request_store: gcs
My questions are where do I ge the “working_directory” and “delete_request_store” details from on my install?
Working directory is a local directory where compactor stores temporary data, usually not critical, you just need to make sure it doesn’t conflict with other things if you are running simple scalable mode where a container can have multiple components.
delete_request_store can be local filesystem as well, but if you are using object storage such as gcs bucket or S3 you can just use the same object storage.
Thanks for reply
So my deployment is installled locally on a Debian virtual machine. No containers or AWS etc so doesn’t that mean my object storage would be a local folder ?