elasticsearch - 无法使用策展人Elasticsearch删除索引

标签 elasticsearch elastic-stack filebeat elk elasticsearch-curator

我正在尝试处理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

最佳答案

问题在于,如果不将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

关于elasticsearch - 无法使用策展人Elasticsearch删除索引,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/60125588/

相关文章:

elasticsearch - CURL:不支持Content-Type header [application/x-www-form-urlencoded]

Elasticsearch 巢 : specifying Id explicitly seems to cause inconsistent search scores

sorting - Elasticsearch脚本排序花费的时间太长

elasticsearch - 如何在ElasticSearch中保护数据

c# - 在 Elasticsearch Nest 中过滤掉带有子项的行

elasticsearch - 处理倒数函数时如何防止Elasticsearch中的分片故障

elasticsearch - 无法启动面临权限问题的logstash

elasticsearch - Filebeat 6.1.0 和 exclude_lines 选项

elasticsearch - 将日志从远程服务器拉取到elasticsearch

elasticsearch - Filebeat添加不需要的空白字段