From 32dd4457e71b05576f636c628f5adaeb5e4d3db0 Mon Sep 17 00:00:00 2001 From: Hiroshi Hatake Date: Mon, 25 Mar 2024 20:24:55 +0900 Subject: [PATCH] in_tail: Handle specified glob patterns which set up by enable_glob in exclude paths Signed-off-by: Hiroshi Hatake --- lib/fluent/plugin/in_tail.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/fluent/plugin/in_tail.rb b/lib/fluent/plugin/in_tail.rb index b600e611d9..3db4605065 100644 --- a/lib/fluent/plugin/in_tail.rb +++ b/lib/fluent/plugin/in_tail.rb @@ -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 = {}