mirror of
https://github.com/elastic/logstash.git
synced 2025-04-24 14:47:19 -04:00
parent
0e90733c84
commit
c75ef874ae
1 changed files with 2 additions and 1 deletions
|
@ -336,7 +336,8 @@ class LogStash::Runner < Clamp::StrictCommand
|
|||
# TODO(ph): make it better for multiple pipeline
|
||||
if results.success?
|
||||
results.response.each do |pipeline_config|
|
||||
LogStash::BasePipeline.new(pipeline_config)
|
||||
pipeline_class = pipeline_config.settings.get_value("pipeline.java_execution") ? LogStash::JavaPipeline : LogStash::BasePipeline
|
||||
pipeline_class.new(pipeline_config)
|
||||
end
|
||||
puts "Configuration OK"
|
||||
logger.info "Using config.test_and_exit mode. Config Validation Result: OK. Exiting Logstash"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue