mirror of
https://github.com/elastic/logstash.git
synced 2025-04-23 22:27:21 -04:00
- Find patterns based on relative pathing of the file
This commit is contained in:
parent
3b2395f372
commit
597a89a7e8
1 changed files with 2 additions and 1 deletions
|
@ -15,7 +15,8 @@ class LogStash::Filters::Grok < LogStash::Filters::Base
|
|||
@config.each do |type, typeconfig|
|
||||
@logger.debug("Registering type with grok: #{type}")
|
||||
pile = Grok::Pile.new
|
||||
Dir.glob("patterns/*").each do |path|
|
||||
patterndir = "#{File.dirname(__FILE__)}/../../../patterns/*"
|
||||
Dir.glob(patterndir).each do |path|
|
||||
pile.add_patterns_from_file(path)
|
||||
end
|
||||
typeconfig["patterns"].each do |pattern|
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue