-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Wildcard and quoting handling are not correct in Windows #1138
Comments
This problem also exists in v1. I found the file buffer uses fluentd/lib/fluent/plugin/buf_file.rb Lines 139 to 146 in 77d7229
Dir.glob("C:\\test\\fluentd\\buffer\\buffer.*.log")
=> []
Dir.glob("C:/test/fluentd/buffer/buffer.*.log")
=> ["C:/test/fluentd/buffer/buffer.b5ff1d72f0a4b33c509f95a77bab5bf89.log", "C:/test/fluentd/buffer/buffer.b5ff1d74b9eb7a2e23696bf59405d3fce.log", "C:/test/fluentd/buffer/buffer.b5ff1d8af5a361ee8bc9a81ed39e877da.log"] How to Reproduceenv
config <source>
@type sample
tag test
</source>
<match test.**>
@type stdout
<buffer>
@type file
path C:\test\fluentd\buffer
flush_at_shutdown false
flush_interval 10
</buffer>
</match> steps
|
See fluent/fluentd#1138 Signed-off-by: Kentaro Hayashi <hayashi@clear-code.com>
See fluent/fluentd#1138 Signed-off-by: Kentaro Hayashi <hayashi@clear-code.com>
See fluent/fluentd#1138 Signed-off-by: Kentaro Hayashi <hayashi@clear-code.com>
See fluent/fluentd#1138 Signed-off-by: Kentaro Hayashi <hayashi@clear-code.com>
Backslashes are handled as quoting character in path of
in_tail
.But backslashes are also path separator in Windows environment, and it is not determined automatically whether a backslash is separator or quoting character.
We should have a way to handle it correctly in Windows environment.
Options:
The text was updated successfully, but these errors were encountered: