filebeat7.5指定自定义index名称无效,自动创建index

在使用Filebeat 7.5时,若数据未被发送至指定的索引,而是自动创建了带有版本日期的索引,可以通过在配置文件中设置'setup.ilm.enabled'为'false'来解决此问题,从而让数据直接发送至自定义索引。

在使用filebeat7.5的时候,filebeat.yml文件中指定了index,并且也指定了template.name、template.pattern。

但是在发送到elasticsearch7.5时并没有将数据发送到我们指定的index中,而是自动创建了名为filebeat-{version}-{yyyy-MM-dd}的index,并将数据发送到该index中。

解决方案:

在yml文件中添加如下配置:

setup.ilm.enabled: false

官方文档中指出:Configure index lifecycle management | Filebeat Reference [7.5] | Elastic

setup.ilm.enabled

Enables or disables index lifecycle management on any new indices created by Filebeat. Valid values are truefalse, and auto. When auto (the default) is specified on version 7.0 and later, Filebeat automatically uses index lifecycle management if the feature is enabled in Elasticsearch and has the required license; otherwise, Filebeat creates daily indices.

所以,当我们该属性为false时,就不再遵循ilm的管理,而是索引到我们自己指定的index中。

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

QYHuiiQ

听说打赏的人工资翻倍~

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值