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
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.