This only job executed by this docker is to clean the elastic search logstash history leaving only a configurable amount of days worth of logging in the system. The job runs in the specified interval.
It can be run as follows:
docker run -d -e INTERVAL_IN_HOURS=24 -e OLDER_THAN_IN_DAYS="10" --link es1:elasticsearch jverhoeven/elasticsearch-curator
where es1 is the name of the elasticsearch container and
- INTERVAL_IN_HOURS: The amount of time between two curator runs
- OLDER_THAN_IN_DAYS: Indicates all logs with a date exceeding this age can be deleted.