-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
in_tail does not filter directories when the ** pattern is used #1451
Comments
|
path /tmp/fluentd/**/*.log works fine, but we're having an issue with files that don't have extensions like /tmp/fluentd/dir1/dir4/file6 |
For such cases, separating |
To ignore directory, adding file type check is one way. fluentd/lib/fluent/plugin/in_tail.rb Line 187 in 4dab161
|
It's what I did: I added a method that removes all directories from the result of expand_paths. However, I was wondering if there was another way to solve this issue with a configuration change only. |
Fix issue #1451. The in_tail plugin tries to tail directories when th…
Fixed at master |
Fix issue #1451. The in_tail plugin tries to tail directories when th…
Our case: there is a folder that contains log files. The log files can have different extensions, even nothing (like file6 in the example above). We want fluentd to tail all the files in the given directory and its subdirectories. It can be done with the in_tail plugin and the ** pattern in the path. However, in_tail can't distinguish files and folders, therefore fluentd doens't tail the files but shows the following error:
I looked through the code and found no solutions for this issue except adding a filter for directories in in_tail.rb.
I would appreciate if you could recommend a workaround for this issue without code change.
If you think a code change is needed to solve this issue I could create a patch.
The text was updated successfully, but these errors were encountered: