Logstash使用codec处理json数据

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/xuxile/article/details/79136726
file {
	path => "/home/tomcat/tomcat7-8080-my/logs/my.log"
	start_position => beginning
	type => behavior
	codec => json {
		charset => "UTF-8"
	}
	add_field => {
		"machineIp"=>"192.168.1.3"
		"machineType"=>"test"
	}
}

猜你喜欢

转载自blog.csdn.net/xuxile/article/details/79136726
今日推荐