【发布时间】:2019-06-05 07:34:24
【问题描述】:
我想在不使用 curator 的情况下从 elasticsearch 中删除旧的(比如说过去 10 天)索引。有没有其他方法可以删除所有旧索引? (有没有办法使用 Node.js 删除索引)
注意:我用谷歌搜索过,但没有找到任何合适的答案,而且很多人都在使用 curator。
【问题讨论】:
-
你的索引的命名模式是什么?
-
@Val 我的索引模式是“tenentidentifier_appidentifier_instanceidentifier_@timestamp”
-
您可以创建自己的脚本(甚至在 Bash 中)来删除您的旧索引。
标签: node.js elasticsearch elasticsearch-5