I'm trying to write logs containing non UTF-8 data with the file output.
Logstash always return this error when it tries to write:
Encoding::UndefinedConversionError: ""\xAC"" from ASCII-8BIT to UTF-8
I've tried to change the charset from the default UTF-8 to ASCII-8BIT, in order to avoid the conversion:
output {
file { codec => plain {charset => "ASCII-8BIT"} path => "PATH" }
}
What could I do if output file does not respect the defined charset?
I'm trying to write logs containing non UTF-8 data with the file output. Logstash always return this error when it tries to write:
Encoding::UndefinedConversionError: ""\xAC"" from ASCII-8BIT to UTF-8
I've tried to change the charset from the default UTF-8 to ASCII-8BIT, in order to avoid the conversion: output { file { codec => plain {charset => "ASCII-8BIT"} path => "PATH" } }
What could I do if output file does not respect the defined charset?
Thanks