无法通过馆长弹性搜索删除索引

问题描述 投票:0回答:1

我正在尝试处理14天或之前在Elasticsearch中存储的所有日志。我已经安装了curator,并以这种方式创建了配置文件和操作文件:

curator.yml configuration file

我的elasticsearch在localhost:8080中运行,而kibana在localhost:80中运行

delete_indices action file

使用两个配置文件,我都使用配置文件执行管理器,并且我得到了这个:

command execution

您可以在下图中看到我在kibana中的索引名称:

filebeat index in kibana

我已经尝试了很多事情,但是我没有设法使其起作用,它总是说没有使用该名称的索引。有人知道问题可能在哪里吗?

编辑1:在您的帮助下,我设法获得了准确的索引名,但是仍然存在相同的问题:

modified delete_indices.yml file

这就是我输入GET _cat / indices时得到的:

my indices

elasticsearch elastic-stack filebeat elk elasticsearch-curator
1个回答
0
投票

问题是,如果未将allow_ilm_indices设置为true,则策展人将不会对与ILM策略关联的任何索引进行操作。

解决方案是:

custom delete_indices file

allow_ilm_indices

更多信息:https://www.elastic.co/guide/en/elasticsearch/client/curator/5.8/option_allow_ilm.html

© www.soinside.com 2019 - 2024. All rights reserved.