output { elasticsearch { hosts => ["127.0.0.1:9200"] index => "log-xxxx-%{+YYYY.MM.dd}" } }
注意index裏面不能存在大寫字符json
又被坑了.elasticsearch