filebeat 6.0以后版本设置index名字

坑坑坑,官网说明很不明显

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对其
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章