Module: LogStash::Patterns::Core
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 |