We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
See also y-ken/fluent-plugin-twilio#8 (comment) and following comments in the PR.
<source> @type forward @label @NOTIFY </source> <label @NOTIFY> <filter> @type record_transformer <record> message こんにちは. ${record["name"]} has made a order of ${record["item"]} just now. </record> </filter> <match dummy.log> @type stdout </match> </label>
and run following command.
$ echo '{"name": "太郎", "message": "ほげほげ", "item": "寿司" }' | env LANG=C bundle exec fluent-cat dummy.log
And got following error:
2017-06-05 12:14:33 +0900 [warn]: #0 dump an error event: error_class=Encoding::CompatibilityError error="incompatible character encodings: ASCII-8BIT and UTF-8" tag="dummy.log" time=#<Fluent::EventTime:0x0055965471a558 @sec=1496632473, @nsec=421845491> record={"name"=>"\u592A\u90CE", "message"=>"\u307B\u3052\u307B\u3052", "item"=>"\u5BFF\u53F8"}
This line does not consider encoding.
Fluentd reads fluent.conf as UTF-8. On the other hand, other files should be treated as ASCII-8BIT I think.
Fix filter_record_transformer to consider encoding.
The text was updated successfully, but these errors were encountered:
Another users has faced to related encoding problem with some plugins.
datacounter http://inokara.hateblo.jp/entry/2015/06/24/010004
grep https://blue21neo.blogspot.jp/2016/03/centos6fluentd-filtergrep.html
Sorry, something went wrong.
It works with 0.12. So v0.14 breaks the compatibility and it should be fixed. @okkez Could you write a patch?
OK, I will create patch according to solution A.
Set UTF-8 encoding to string from configuration file
831f4af
Fluentd assumes configuration file encoding is UTF-8. Fix fluent#1590
Thank you!
No branches or pull requests
See also y-ken/fluent-plugin-twilio#8 (comment) and following comments in the PR.
How to reproduce
and run following command.
And got following error:
My investigation
This line does not consider encoding.
Solution A
Fluentd reads fluent.conf as UTF-8.
On the other hand, other files should be treated as ASCII-8BIT I think.
Solution B
Fix filter_record_transformer to consider encoding.
The text was updated successfully, but these errors were encountered: