A Fluentd log collector writes to Elasticsearch which eventually fills up the disk. How to limit them to a month, for example?
Part of the Fluentd config (using Kubernetes):
<match kubernetes.**>
@type elasticsearch_dynamic
host elasticsearch.default.svc.cluster.local
port 9200
include_tag_key true
logstash_format true
logstash_prefix kubernetes-${record['kubernetes']['pod_name']}
</match>
"Curator" for Elasticsearch, can delete "indexes", but I don't know what indexes Fluentd creates, when it stops using them and what does it mean to delete an index when there are still useful new logs in it?
Curator will delete indices for you, regardless of whether Logstash, fluentd, or some other app made them. This example will work with the index pattern you provided in the above comments.