设置参数 `node.name` 可以自定义 Elasticsearch 节点的名字。 此条 Tips 由 medcl 贡献。

es的索引生命周期无法匹配

Elasticsearch | 作者 lymv | 发布于2019年08月05日 | 阅读数:1165

图片左边的是我创建策略和索引模板的全部过程,但是最后查对应的索引的策略阶段时候每次都显示不匹配,但是我的索引名字里面符合^.*-\d+$的正则啊,我用的是ES7.1,请问各位大佬这个该怎么解决
微信截图_20190805163701.png
已邀请:

hanj

赞同来自: swang

你新建的索引epay_error_20190817没有按照短横线加数字的格式结尾;即要求“-000001” 的格式结尾;
导致在做rollover index的操作时,无法正确解析索引名称。
 
官方原文:
We are using the Rollover Action in our policy, which requires that our index name ends with a number. In our case, we used 000001. This is important so that Rollover can increment this number when naming the new index created from rolling over.
 
具体地址:
https://www.elastic.co/guide/e ... olicy

shaoyuwu

赞同来自:

您好,我也遇到了同样的问题,请问有解决方法嘛

要回复问题请先登录注册