首页 > 其他 > 详细

filebeat 6.0以后版本设置index名字

时间:2018-03-07 16:16:22      阅读:2108      评论:0      收藏:0      [点我收藏+]
坑坑坑,官网说明很不明显

https://www.elastic.co/guide/en/beats/metricbeat/current/configuration-template.html

6.0以后版本具体设置在filebeat.yml如下

setup.template.name: "myname-01"        #顶格,和output对其
setup.template.pattern: "myname-01-*"   #顶格,和output对其
output.elasticsearch:
  hosts: ["192.168.10.63:9200"]
  index: "myname-01-%{+yyyy.MM.dd}"             #和hosts对其

filebeat 6.0以后版本设置index名字

原文:http://blog.51cto.com/linyingyong/2083825

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!