logstash-plugins / logstash-output-file

Apache License 2.0
23 stars 53 forks source link

Output file always tries to convert to UTF-8 #8

Open CalldiDoctor opened 9 years ago

CalldiDoctor commented 9 years ago

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

vinxavier commented 2 years ago

I am facing the opposite, trying to save as UTF-8 but always getting "US-ASCII".