1. 程式人生 > >filebeat 6.0以後版本設置index名字

filebeat 6.0以後版本設置index名字

elk filebeat

坑坑坑,官網說明很不明顯

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名字