遇到的问题:
环境:
配置:
input {beats {port=>5044codec=>plain{charset=>"UTF-8"}} }filter {mutate {remove_field => ["host","input","@timestamp","ecs","tags","agent","@version","event"]} }output {if [log][file][path] == "/root/projects/blade-gateway/log/blade-gateway-nohup.log" {file {path => "/root/blade-gateway-nohup.log"}}if [log][file][path] == "/root/projects/blade-resource/log/blade-resource-nohup.log" {file {path => "/root/blade-resource-nohup.log"codec => line { format => "custom format: %{message}"}}} }