add support for auto-pruning the logstash indices