-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Emoji got UNICODE-escaped for file output when running fluent-bit with Docker #8521
Comments
Confirmed that the issue exists for the following env. OS: Amazon Linux 2023 arm
fluent bit: [fluent bit] version=3.0.3 BTW, if I change the os arch to x86, the issue disappeared... |
Build with |
@RamaMalladiAWS sorry, that's a cmake flag right? I think we need to add this to AWS for Fluent Bit distro. Would you like to submit the github commit for the diff of the change? |
Yes, I can do. |
I submitted PR: #8851. |
This issue is stale because it has been open 90 days with no activity. Remove stale label or comment or this will be closed in 5 days. Maintainers can add the |
We are waiting on merge of PR: #8851. |
Bug Report
Describe the bug
We have emojis in the log message. The emojis are carried forward in the pipeline at fluent-bit appropriately. However, in the last step, if the output is
s3
orfile
, the emojis got UNICODE-escaped in the produced file.To Reproduce
Create a simple test input file
input.log
, which contains only one line:Run
fluent-bit
with Docker usingfile
output:docker run -it --rm -v $(pwd):/data fluent/fluent-bit:2.2.2 /fluent-bit/bin/fluent-bit -i tail -p read_from_head=true -p exit_on_eof=true -p path=/data/input.log -o file -p path=/data -p file=output.log --verbose
In the
output.log
file, the emoji is UNICODE-escaped:Expected behavior
The output should be:
Your Environment
Additional context
Still taking the
input.log
example, I succeeded with some other scenarios:Case 1: run fluent-bit with Docker using
stdout
as output. --Work as expectedCommand:
docker run -it --rm -v $(pwd):/data fluent/fluent-bit:2.2.2 /fluent-bit/bin/fluent-bit -i tail -p read_from_head=true -p exit_on_eof=true -p path=/data/input.log -o stdout
Output (from the log):
Case 2: run fluent-bit without Docker using
file
as output. --Work as expectedCommand:
Output (from
output.log
file):I also tried to build the image by taking
debian:bullseye-slim
as the base image. Installedlocales
:and set the environment variables accordingly in the
Dockerfile
:It did not change the result.
The text was updated successfully, but these errors were encountered: