Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Convert logs from UTF-16 to UTF-8 before sending to New Relic Log API #70

Open
nedl86 opened this issue May 23, 2021 · 2 comments
Open

Comments

@nedl86
Copy link

nedl86 commented May 23, 2021

According to the documentation, the New Relic Log API requires UTF-8 encoding. Forwarding UTF-16 logs doesn't result in a failure, but inserts \u0000 (NULL) characters between each character due to the extra bits, making it impossible to query/parse the resulting logs in New Relic.

@GHMeyer0
Copy link

GHMeyer0 commented Apr 7, 2022

Hu, in the input settings there are two parameters "encoding" and "from_encoding", you could use them to do the conversion.

encoding UTF8
from_encoding UTF16

https://docs.fluentd.org/input/tail#encoding-from_encoding

@jdearana-nr
Copy link

@GHMeyer0 Currently, FluentBit does not natively support encoding conversions. FluentBit is designed to work with UTF-8 encoded data and doesn't have built-in capabilities for converting between other encoding types like UTF-16 and UTF-8. I assume the ask for this Issue is to provide a configurable feature in this output plugin to convert logs encoded in UTF-16 to UTF-8 before the logs are sent to New Relic.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants