Module: LogStash::Patterns::Core

Extended by:
Core
Included in:
Core
Defined in:
lib/logstash/patterns/core.rb

Instance Method Summary collapse

Instance Method Details

#path(type = 'legacy') ⇒ Object



9
10
11
12
13
14
15
16
# File 'lib/logstash/patterns/core.rb', line 9

def path(type = 'legacy')
  case type = type.to_s
  when 'legacy', 'ecs-v1'
    ::File.join(BASE_PATH, type)
  else
    raise ArgumentError, "#{type.inspect} path not supported"
  end
end