We’re looking to develop a rest script that we can run to
remove any indices before x amount of days, this is required for log retention policies.
We run logstash from Ubuntu servers and can handle the bash scripts
but wanting assistance creating some restful queries to perform this.
Indices are created as “[logstash-]YYYY.MM.DD”
Cluster name: elasticsearch