storage_local: fix encoding error when reading non-ASCII characters (#5379)
Which issue(s) this PR fixes: Fixes #5378
What this PR does / why we need it:
If data containing non-latin characters are stored onto disk using the storage_local plugin, the file is properly written but cannot be read again once fluentd restarts. This PR fixes this behaviour by properly handling the file encoding.
Docs Changes: N/A
Release Note:
- storage_local: fix encoding error when reading non-ASCII characters
Signed-off-by: srilumpa marcandre.doll@gmail.com Co-authored-by: Shizuo Fujita watson1978@gmail.com
版权所有:中国计算机学会技术支持:开源发展技术委员会
京ICP备13000930号-9
京公网安备 11010802047560号
Fluentd: Open-Source Log Collector
Fluentd collects events from various data sources and writes them to files, RDBMS, NoSQL, IaaS, SaaS, Hadoop and so on. Fluentd helps you unify your logging infrastructure (Learn more about the Unified Logging Layer).
Quick Start
Development
Branch
Prerequisites
gitshould be inPATH. On Windows, you can useGithub for WindowsandGitShellfor easy setup.Install dependent gems
Use bundler:
Run test
You can run specified test via
TESTenvironment variable:More Information
Security
A third party security audit was performed by Cure53, you can see the full report here.
See SECURITY to contact us about vulnerability.
Contributors:
Patches contributed by great developers.