Delete old Index


(Ema Vasu) #1

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.


(Mark Walkom) #2

Elasticsearch Curator will solve your problems.


(Ema Vasu) #3

Hi Mark,
Thanks for reply.
I am new to ELK
is it new plugin tool need to install ?

thanks


(Mark Walkom) #4

It's not a plugin, your best option is to take a look at the docs for it :slight_smile:


(Ema Vasu) #5

Thanks Mark.
I am going through it now.


(system) #6