具体错误,如题所示:

[WARN ][logstash.codecs.plain    ] Received an event that has a different character encoding than you configured. {:text=>"\\xFF\\xFD\\u0001\\xFF\\xFD\\u0003\\xFF\\xFB\\u0018", :expected_charset=>"UTF-8"}

在logstash的配置文件中增加对字符集的定义:

input {
  syslog {
    host => "***"
    port => 5514

    codec => plain { charset => "UTF-8" }

  }
}

类似这样,就可以了。

——————————————————
Done。

说点什么

avatar

此站点使用Akismet来减少垃圾评论。了解我们如何处理您的评论数据

  Subscribe  
提醒