Need help in delete index after x days

I'm using Elasticsearch 1.x. is there any way we can delete index after x days without using delete query.

use ILM policy:

I guess are not supporting ILM in Elasticsearch 1.x.
Please correct me if am wrong.

You should not use Elasticsearch 1.x.

It's too old. Upgrade as a matter of urgency! :wink:

Yaa, understood. it will take time to do it.
As of now we planned to delete the old index after x days. is there any way to do the same.

I don't remember if curator was compatible with this version. I think it was but you have to check.

Otherwise, you can run a cron job which calls the DELETE index API.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.