在使用logstash解析某log文件时,由于文件中出现了非正常编码的字符,导致启动logstash在解析到某条数据时会报错:
Received an event that has a different character encoding than you configured.
解决方案就是在input中添加如下配置:
codec => plain {charset=>"US-ASCII"}
在使用logstash解析某log文件时,由于文件中出现了非正常编码的字符,导致启动logstash在解析到某条数据时会报错:
Received an event that has a different character encoding than you configured.
解决方案就是在input中添加如下配置:
codec => plain {charset=>"US-ASCII"}