mirror of
https://github.com/elastic/logstash.git
synced 2025-04-24 14:47:19 -04:00
Make headway into no longer using custom configuration file. Pass --yaml to logstash agent to make it treat configuration files as YAML.
8 lines
170 B
Ruby
Executable file
8 lines
170 B
Ruby
Executable file
require "logstash/config/file"
|
|
require "yaml"
|
|
|
|
class LogStash::Config::File::Yaml < LogStash::Config::File
|
|
def _get_config(data)
|
|
return YAML.load(data)
|
|
end
|
|
end
|