我想在filebeat的输出中看到原始日志的路径,但是输出的数据结构是这样的:
"log" => {
"offset" => 5664,
"file" => {
"path" => "/tmp/a.log"
}
},
"index" => "logstash-temp-2019.09.10",
"input" => {
"type" => "log"
}
path放到了log.file.path, 我想把它提到顶层,改怎么实现呢?试了processors:
- add_fields并没有实现
2 个回复
stone_xy
赞同来自: nie
输出为:
nie
赞同来自: