我是靠谱客的博主 香蕉小伙,这篇文章主要介绍filebeat7.5指定自定义index名称无效,自动创建index,现在分享给大家,希望可以做个参考。

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

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

解决方案:

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

复制代码
1
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中。

最后

以上就是香蕉小伙最近收集整理的关于filebeat7.5指定自定义index名称无效,自动创建index的全部内容,更多相关filebeat7内容请搜索靠谱客的其他文章。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(78)

评论列表共有 0 条评论

立即
投稿
返回
顶部