用file这个插件就可以正常读取,不会乱码,用filebeat怎么试都要乱码,怎么回事呢?是不是filebeat 哪里要配置? 如图
input{
beats{
codec => plain{ charset => "GB18030" }
port => 5047
type => "filebeat"
}
}
output{
elasticsearch {
codec => plain{ charset => "GB18030" }
hosts => "localhost:9200"
index => "filebeat3-%{+YYYY.MM.dd}"
}
}
4 个回复
z7
赞同来自: Dalen_fly
- input_type: log
encoding: GB2312
paths:
- /slview/resin/log/stdout.log
#这样就可以解析 中文
chinabinner - 80后 IT 男~~~
赞同来自:
Dalen_fly
赞同来自:
fjkfjk
赞同来自: