问题标签 [elasticsearch-curator]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
1 回答
553 浏览

elasticsearch - Elasticsearch 策展人 - “--old-than 6”

当我尝试使用“ curator --host 127.0.0.1 delete --older-than 6 ”时,我收到错误“错误:没有这样的选项:--older-than ”我正在运行最新版本的 curator,任何建议关于如何解决?

0 投票
1 回答
535 浏览

elasticsearch - 在哪里安装策展人?数据节点还是主节点?

我们需要在每个数据节点上安装 curator 还是只在主节点上安装才能删除超过一个月的索引。

0 投票
1 回答
237 浏览

elasticsearch - 删除与特定模式匹配的 ElasticSearch 索引

如何使用ElasticSearch curator删除与特定模式匹配的旧索引。像这样使用curator将删除所有索引而不是匹配模式的索引:

假设要删除 45 天前匹配的索引sample_index_*,该怎么做?

0 投票
3 回答
92 浏览

elasticsearch - 在不使用 Elasticsearch-curator 的情况下淘汰旧日志

我正在运行一个 ELK 堆栈,并且想要一种自动停用超过某个年龄的日志的策略...我尝试使用 elasticsearch-curator,但它需要 python 2.7,我有 python 2.6.6,并且急于升级 python以防我破坏其他包裹。

是否有类似的产品或者 elasticsearch api 是否满足这样的要求?

0 投票
3 回答
3579 浏览

elasticsearch - 通过 curator 删除超过一小时的弹性搜索索引

我在弹性搜索中有一些索引,其命名格式为elk-console-YYYY-MM-DDtHH. 例如:-

我想使用curator删除所有超过 1 小时的索引。所以我尝试执行以下命令: -

但它给了我以下输出: -

我还尝试执行以下命令:-

但仍然收到以下错误:-

有人可以帮我timestring在我的情况下使用什么格式吗?

环境:-

  • 策展人 3.5.1
  • 弹性搜索 - 2.3.1
0 投票
2 回答
393 浏览

elasticsearch - Elasticsearch 策展人

我正在使用 ElasticSearch 1.7.2 版。我想在策展人的帮助下拍一张快照。我按照链接了解它给了我一个增量快照,但我没有得到我的索引的任何增量快照。

我有 1 个索引test,包含 50,000 个文档。我已经对该索引进行了快照。在同一索引中插入 100,000 个文档后,我再次对该索引进行了快照。但是当我检查它时,它在我的两个快照中显示了相同的数据。

它们之间有什么区别?我不认为它是增量的。请帮帮我。

PS:我只想备份剩下的10万,不是全部数据。

输出GET /_snapshot/my_backup/_all

0 投票
1 回答
426 浏览

elasticsearch - Elasticsearch:策展人不起作用

我正在尝试来自馆长的基本代码

http://curator.readthedocs.io/en/4.0/examples.html

我试试

但我明白了

我错过了什么?

0 投票
1 回答
477 浏览

elasticsearch - Elasticsearch Curator:不按时间字符串显示索引

我正在尝试使用 CLI 探索 elasticsearch curator

https://www.elastic.co/guide/en/elasticsearch/client/curator/current/index.html

我运行了命令

它给了我

这是完美的。现在我只想查看超过 14 天的索引。所以我尝试了

它给了我

我想我没有正确指定时间字符串,但我可以找出原因。

我试过了

但它们也不起作用。我怎样才能正确提供时间字符串?

请注意,如果我这样做

然后我得到

那没有意义。显然,所有这些指数也都超过 14 天!截至今天是 05/17

更新

看着

https://www.elastic.co/guide/en/elasticsearch/client/curator/current/older-than.html

再说一次,为什么我看不到超过 14 天前创建的索引?

0 投票
0 回答
319 浏览

elasticsearch - Elasticsearch 馆长:示例不起作用

我正在尝试遵循以下简单示例

http://curator.readthedocs.io/en/v3.5.1/examples.html

但我明白了

我错过了什么?

0 投票
2 回答
6381 浏览

elasticsearch - ES中如何定期自动删除索引?

我正在使用 ES 2.3.3 和 Logstash 2.3.3。我一直在使用 Logstash 发送数据并将它们映射到 ES 中进行索引,ielogstash-{Date}。我只想保留最近 1 年的文件。任何超过一年的索引都应删除。我之前使用的是 3.5.1。我删除索引的方法是每天输入一个命令。

最近,我将 curator 3.5.1 升级到了 curator 4。但是,即使我已经阅读了https://www.elastic.co/guide/en/elasticsearch/client中的示例,我也找不到 curator 的存储位置/curator/current/command-line.html因此,我想知道配置文件在哪里以及为什么会缺少action_file?这是否意味着我需要创建一个新的 .curator 目录以及我自己的 curator.yml 和 action.yml 文件?

在我创建了 action.yml 文件之后,我是否应该按照https://www.elastic.co/guide/en/elasticsearch/client/curator/current/examples.html#ex_delete_indices并将这部分添加到我的操作中.yml 文件以便在一年内删除 logstash 索引?

谢谢