临时搭建了一套EFK(elasticsearch,filebeat,kibana),filebeat 6.0 默认的index 是filebeat+时间,这样无法满足正常的业务需求,如果是收集一个地方的还可以,超出一个就需要自定义index了,自定义的方法如下:setup* 部分需要顶格写,同时注意index 定义必须是小写字符,否则会报错。
复制代码
1
2
3
4
5
6
7#-------------------------- Elasticsearch output ------------------------------ setup.template.name: "xx-test" setup.template.pattern: "xx-test-*" output.elasticsearch: # Array of hosts to connect to. hosts: ["10.3.248.132:8092"] index: xx-test-%{+yyyy.MM.dd}
转载于:https://blog.51cto.com/seekerwolf/2158916
最后
以上就是迷人诺言最近收集整理的关于Filebeat 6.0 把日志直接输入到ES中如何自定义index的全部内容,更多相关Filebeat内容请搜索靠谱客的其他文章。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复