Grafana - Loki to Flush logs after specific time day weeks or month

Hi all, would like to ask if there’s a way to flush logs after meeting specific day/s, weeks or month/s? eg. After 1 month


See below details, update as below and you will have 744 hour of retention.

working_directory: /tmp/loki/boltdb-shipper-compactor
shared_store: filesystem
compaction_interval: 10m
retention_enabled: true
retention_delete_delay: 2h
retention_delete_worker_count: 150

retention_period: 744h
reject_old_samples: true
reject_old_samples_max_age: 168h
ingestion_rate_mb: 100