You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
2024-12-10 14:56:25 +0000 [error]: #0 unexpected error on reading data host="192.168.112.1" port=49374 error_class=Encoding::UndefinedConversionError error="\"\\xC4\" from ASCII-8BIT to UTF-8"
Another docker container is sending logs to fluentd container using fluentd driver:
I could impact ruby (Encoding.default_external) thru environment variable LANG=C.UTF-8 but based on the logs I can see that encoding ascii-8bit looks like hard-coded for Encoding.default_external and Encoding.default_internal. Take a look at the argument "-Eascii-8bit:ascii-8bit" below:
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
What is a problem?
I want that incoming logs are treated as UTF-8.
I get error message:
Another docker container is sending logs to fluentd container using fluentd driver:
Simple log lines reach destination as expected. Example of log line:
Log entries which contain non-ascii symbols fail (not expected). Example of log line:
I could impact ruby (Encoding.default_external) thru environment variable
LANG=C.UTF-8
but based on the logs I can see that encodingascii-8bit
looks like hard-coded for Encoding.default_external and Encoding.default_internal. Take a look at the argument"-Eascii-8bit:ascii-8bit"
below:Describe the configuration of Fluentd
Fluentd docker image is started:
File fluentd.yml:
File fluent.conf:
Dockerfile to generate image: fluent-custom-image:latest:
Describe the logs of Fluentd
Environment
Beta Was this translation helpful? Give feedback.
All reactions