当前位置: 代码迷 >> 综合 >> Received an event that has a different character encoding than you configured
  详细解决方案

Received an event that has a different character encoding than you configured

热度:37   发布时间:2023-12-16 01:40:53.0

在使用logstash解析某log文件时,由于文件中出现了非正常编码的字符,导致启动logstash在解析到某条数据时会报错:

Received an event that has a different character encoding than you configured.

解决方案就是在input中添加如下配置:

codec => plain {charset=>"US-ASCII"}

  相关解决方案