Skip to content

Commit

Permalink
in_tail: Handle specified glob patterns which set up by enable_glob i…
Browse files Browse the repository at this point in the history
…n exclude paths

Signed-off-by: Hiroshi Hatake <[email protected]>
  • Loading branch information
cosmo0920 committed Mar 25, 2024
1 parent 4ef8af0 commit 32dd445
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/fluent/plugin/in_tail.rb
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,7 @@ def expand_paths
else
date.to_time.strftime(path)
end
path.include?('*') ? Dir.glob(path) : path
use_glob?(path) ? Dir.glob(path) : path
}.flatten.uniq
# filter out non existing files, so in case pattern is without '*' we don't do unnecessary work
hash = {}
Expand Down

0 comments on commit 32dd445

Please sign in to comment.