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对其
原文地址:http://blog.51cto.com/linyingyong/2083825