After deploying Grafana loki in my local machine using docker-compose, The Grafana Loki doesn’t delete the old logs even if we set the retention period.
First I tried to use table manager but it doesn’t work as expected.
table_manager:
retention_deletes_enabled: true
retention_period: 72h
Then used a compactor which also doesn't delete the old logs.
schema_config:
configs:
- from: 2020-10-24
store: boltdb-shipper
object_store: filesystem
schema: v11
index:
prefix: index_
period: 24h
compactor:
retention_enabled: true
limits_config:
retention_period: 72h