Search code examples
elasticsearchelastic-stackfilebeatelkelasticsearch-curator

Cannot delete indices with curator elasticsearch


I am trying to deleate all the logs that are were stored 14 days ago or before in elasticsearch. I have installed curator , and created the config file and the action file, in this way:

curator.yml configuration file

My elasticsearch is running in localhost:8080 ,and kibana in localhost:80

delete_indices action file

With both configurations file, I execute the currator with the config files and i obtain this:

command execution

You can see in the following image, my index name in kibana:

filebeat index in kibana

I've already tried many things, however I didn't manage to make it work, it allways says there is no index with this name. Do someone know where could be the issue?

Edit 1: With your help, I managed to get the exact index name, however I still have the same problem:

modified delete_indices.yml file

That's what i get when i enter GET _cat/indices:

my indices


Solution

  • The problem was that curator will not act on any index associated with an ILM policy without setting allow_ilm_indices to to true.

    The solution was:

    custom delete_indices file

    allow_ilm_indices

    More information: https://www.elastic.co/guide/en/elasticsearch/client/curator/5.8/option_allow_ilm.html