Hi,
I would like to know is there anyway I could write cron job to delete the index that is older than 3 months.
my index on elasticsearch looks like this
abc-2015.10
abc-2015.11
abc-2015.12
abc-2016.01
abc-2016.02
abc.2016.03
my index created every monthly basis, i need to delete the index automatically older than 3 months.
currently i am doing manually deleting the index using
curl -XDELETE localhost:9200/abc-2015.10/
curl -XDELETE localhost:9200/abc-2015.11/
curl -XDELETE localhost:9200/abc-2015.12/
Any support will be appropriate.