diff --git a/lib/logstash/filters/grok.rb b/lib/logstash/filters/grok.rb index 89e8a66..f7a86e1 100644 --- a/lib/logstash/filters/grok.rb +++ b/lib/logstash/filters/grok.rb @@ -390,7 +390,11 @@ def patterns_files_from_paths(paths, glob) Dir.glob(path).each do |file| @logger.trace("Grok loading patterns from file", :path => file) - patternfiles << file unless File.directory?(file) + if File.directory?(file) + logger.debug("Skipping path because it is a directory", :path => file) + else + patternfiles << file + end end end patternfiles