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

Fix Encoding for Graylog output #276

Merged
merged 1 commit into from
Mar 4, 2019

Conversation

zrochler
Copy link
Contributor

The gelf plugin used for graylog assumes UTF-8 from the source, but the input sources are using ASCII-8BIT. This currently causes errors when trying to flush the buffer (See: https://docs.fluentd.org/v1.0/articles/faq#i-got-enconding-error-inside-plugin.-how-to-fix-it). To solve this I added the plugin here: https://github.com/repeatedly/fluent-plugin-record-modifier and added a filter just before the output to change the encoding.

I considered adding the encoding parameter to the sources, but that adds quite a bit more to maintain.

This fixes #145

@repeatedly repeatedly merged commit 5a953b3 into fluent:master Mar 4, 2019
@repeatedly
Copy link
Member

Thanks!

@zrochler zrochler deleted the GraylogEncoding branch March 7, 2019 18:11
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

Successfully merging this pull request may close these issues.

Sending logs to Graylog
2 participants