emsearcy / fluent-plugin-gelf

Buffered fluentd output plugin to GELF (Graylog2)
Apache License 2.0
33 stars 57 forks source link

Possibly fix issue with illegal UTF-8 messages #11

Closed jardiacaj closed 8 years ago

jardiacaj commented 8 years ago

I am not a Ruby developer, but I had an issue when messages contain 8-bit ASCII characters, like "\xC2". This made td-agent hang.

This change tries to fix the message.

emsearcy commented 8 years ago

This doesn't seem like the right fix to me. As far as I can tell, it's a problem with in_tail doing a force_encoding to ASCII, which means we'd want to force_encoding back (see some of the other open pull requests and issue #2).