I use elastic stack 5.0 GA, and I know (and I use) how to delete old indices using
curl --user elastic:elasticpassword -XDELETE '192.168.1.1:9200/myindex-*?pretty'
I have named my indices in the pattern
myindex-2016-11-10. Deleting old indices manually works fine. But I want to automate this.
I have indices like
myindex-2016-11-02 etc. I want to do an automated process, which backups old indices (say, older than 5 days), as a file, so that I can move that to my external HDD in case if its needed in future, and thereby freeing up my PC's HDD. Is this possible, or any workaround?