遇到的问题:
环境:
配置:
input { beats { port=>5044 codec=>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}"} } } }
标签:log,blade,nohup,file,path,root,logstash From: https://www.cnblogs.com/xiluhua/p/18199291