开始按照网络说法,修改
output.elasticsearch.index: "test"
启动filebeat报错,406
后参考官网:https://www.elastic.co/guide/en/beats/filebeat/current/filebeat-template.html
example:
output.elasticsearch.index: "customname-%{[beat.version]}-%{+yyyy.MM.dd}" setup.template.name: "customname" setup.template.pattern: "customname-*"
成功