Logstash multiline charset => "UTF-8"

[2023-10-31T12:01:11,534][WARN ][logstash.codecs.multiline][main][a029b778777f02de25308ca25697ff60da99dc3bc13beaf4e1c2d010740b27d8] Received an event that has a different character encoding than you configured. {:text=>"2023-10-26T10:XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX 1 23D96FAFAB40E3DFC5DC16D40C7C9093.route1 - ***************************************************************\\r", :expected_charset=>"UTF-8"}

I have the charset
file {
    path => "C:/Program Files (x86)/test.log"
    type => "orion"
    codec => multiline {
      pattern => "^%{TIMESTAMP_ISO8601}"
      negate => true
      what => "previous"
      charset => "UTF-8"
    }
    start_position => "beginning"
  }

Why is it still complaining about the charset?

It is expecting to receive UTF-8 characters, and it is complaining because at least one character in the text it read is not a valid UTF-8 character.

How to get this solved?

Change the charset option to whatever encoding the text being consumed is actually using. It is not UTF-8.

Thanks @Badger for your help.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.