0

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

curator.yml 配置文件

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

delete_indices 操作文件

使用这两个配置文件,我使用配置文件执行 currator 并获得以下信息:

命令执行

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

kibana中的filebeat索引

我已经尝试了很多东西,但是我没有设法让它工作,它总是说没有这个名字的索引。有人知道问题出在哪里吗?

编辑 1:在您的帮助下,我设法获得了确切的索引名称,但是我仍然遇到同样的问题:

修改 delete_indices.yml 文件

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

我的指数

4

1 回答 1

0

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

于 2020-02-10T09:01:39.227 回答