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
Tail plugin does not parse the path if path contains folder with multibyte characters (e.g. Chinese) on windows while it works on fluentd image in linux docker.
#3769
Closed
deepaksb2 opened this issue
May 31, 2022
· 1 comment
· Fixed by #3774
We have a scenario where log folder path contains the folder with multibyte characters (let’s say Chinese character 日志), the tail plugin fails to parse the path and logs are not collected.
This behavior we have only seen in windows environment (Td-agent version 4.3.1) which it just works fine with docker image of fluentd on Linux environment.
To Reproduce
Configure td-agent.conf with source tail plugin with path input which contains folder with multibyte character (C:\logs\日志文件夹\0_gen_apache.log). This only happens with Windows fluentD.
Expected behavior
FluentD should start tailing the logs when path contains multibyte characters on windows environment
Your Environment
- Fluentd version: 1.14.6
- TD Agent version: 4.3.1
- Operating system: Windows Server 2012 R2 and 2019
- Kernel version:
We don't need to call CreateFile() by ourself, use standard File.open
and _get_osfhandle() instead. It will also fix a bug that WindowsFile
cannot open non-ascii path.
Fix#3769
Signed-off-by: Takuro Ashie <[email protected]>
Describe the bug
We have a scenario where log folder path contains the folder with multibyte characters (let’s say Chinese character 日志), the tail plugin fails to parse the path and logs are not collected.
This behavior we have only seen in windows environment (Td-agent version 4.3.1) which it just works fine with docker image of fluentd on Linux environment.
To Reproduce
Configure td-agent.conf with source tail plugin with path input which contains folder with multibyte character (C:\logs\日志文件夹\0_gen_apache.log). This only happens with Windows fluentD.
Expected behavior
FluentD should start tailing the logs when path contains multibyte characters on windows environment
Your Environment
Your Configuration
Your Error Log
Additional context
This failure only occurs in Windows based td-agent and works as expected on Linux (Debian GNU/Linux 11 (bullseye)"
NAME="Debian GNU/Linux")
The text was updated successfully, but these errors were encountered: