logstash/lib/logstash/config/file/yaml.rb
Stephon Striplin 89c2ee7060 add yaml config support
Make headway into no longer using custom configuration file. Pass --yaml to
logstash agent to make it treat configuration files as YAML.
2012-11-29 12:33:51 -08:00

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