配置tags、document_type一直報錯
filebeat.prospectors:
input_type: log
paths:
/data/logs/access.log
tags: ["-tags"]
document_type: "gc-document"
嘗試了n多次加“”-“”不好使,頂行不好使,最終嘗試了n多次終于發現問題了。原來前面2個空格就可以。不熟悉yml的文法。擦,對齊paths就沒有問題。
配置tags、document_type一直報錯
filebeat.prospectors:
input_type: log
paths:
/data/logs/access.log
tags: ["-tags"]
document_type: "gc-document"
嘗試了n多次加“”-“”不好使,頂行不好使,最終嘗試了n多次終于發現問題了。原來前面2個空格就可以。不熟悉yml的文法。擦,對齊paths就沒有問題。