Error registering plugin {:pipeline_id=>"main", :plugin=>"#,
@structured_lookup_mutex=#,
@fast_lookup=#>>>,
@namespace_name=[:stats, :pipelines, :main, :plugins, :outputs, :\"7ab8b6ae5bdf924bc8a49e7d126a7a4e7af5ebab0928fb0ab7a8e0d02a0c33b9\"]>,
@metric=#,
structured_lookup_mutex=#, @fast_lookup=#>>>,
@namespace_name=[:stats, :pipelines, :main, :plugins, :outputs]>,
@out_counter=org.jruby.proxy.org.logstash.instrument.metrics.counter.LongCounter$Proxy2 - name: out value:0,
@strategy=#[jiadun.slave01.com:9200,jiadun.slave02.com:9200,jiadun.slave03.com:9200,jiadun.slave04.com:9200,jiadun.slave05.com:9200,jiadun.slave06.com:9200],
index=>\"wa_source_fj_1001_res_%{+YYYYMMdd}\", timeout=>300, id=>\"7ab8b6ae5bdf924bc8a49e7d126a7a4e7af5ebab0928fb0ab7a8e0d02a0c33b9\",
enable_metric=>true, codec=>\"plain_c4300397-55f3-4b9f-ab65-00fbe6a9556d\", enable_metric=>true, charset=>\"UTF-8\">,
workers=>1, manage_template=>true, template_name=>\"logstash\", template_overwrite=>false, doc_as_upsert=>false, script_type=>\"inline\",
script_lang=>\"painless\", script_var_name=>\"event\", scripted_upsert=>false, retry_initial_interval=>2, retry_max_interval=>64, retry_on_conflict=>1,
action=>\"index\", ssl_certificate_verification=>true, sniffing=>false, sniffing_delay=>5, pool_max=>1000, pool_max_per_route=>100, resurrect_delay=>5,
validate_after_inactivity=>10000, http_compression=>false>>, @in_counter=org.jruby.proxy.org.logstash.instrument.metrics.counter.LongCounter$Proxy2 -
name: in value:0, @id=\"7ab8b6ae5bdf924bc8a49e7d126a7a4e7af5ebab0928fb0ab7a8e0d02a0c33b9\", @time_metric=org.jruby.proxy.org.logstash.instrument.metrics.counter.LongCounter$Proxy2 - name: duration_in_millis value:0,
@metric_events=#, @structured_lookup_mutex=#,
@fast_lookup=#>>>, @namespace_name=[:stats, :pipelines, :main, :plugins, :outputs, :\"7ab8b6ae5bdf924bc8a49e7d126a7a4e7af5ebab0928fb0ab7a8e0d02a0c33b9\",
:events]>, @output_class=LogStash::Outputs::ElasticSearch>", :error=>"Bad scheme 'jiadun.slave01.com' found should be one of http/https", :thread=>"#"}
[2018-10-19T05:15:31,164][ERROR][logstash.pipeline ]
Pipeline aborted due to error
{:pipeline_id=>"main", :exception=>#,
:backtrace=>["/data/app/logstash/vendor/bundle/jruby/2.3.0/gems/logstash-output-elasticsearch-9.0.3-java/lib/logstash/outputs/elasticsearch/http_client.rb:215:in `scheme'",
"/data/app/logstash/vendor/bundle/jruby/2.3.0/gems/logstash-output-elasticsearch-9.0.3-java/lib/logstash/outputs/elasticsearch/http_client.rb:68:in `build_url_template'",
"/data/app/logstash/vendor/bundle/jruby/2.3.0/gems/logstash-output-elasticsearch-9.0.3-java/lib/logstash/outputs/elasticsearch/http_client.rb:58:in `initialize'",
"/data/app/logstash/vendor/bundle/jruby/2.3.0/gems/logstash-output-elasticsearch-9.0.3-java/lib/logstash/outputs/elasticsearch/http_client_builder.rb:101:in `create_http_client'",
"/data/app/logstash/vendor/bundle/jruby/2.3.0/gems/logstash-output-elasticsearch-9.0.3-java/lib/logstash/outputs/elasticsearch/http_client_builder.rb:97:in `build'",
"/data/app/logstash/vendor/bundle/jruby/2.3.0/gems/logstash-output-elasticsearch-9.0.3-java/lib/logstash/outputs/elasticsearch.rb:230:in `build_client'",
"/data/app/logstash/vendor/bundle/jruby/2.3.0/gems/logstash-output-elasticsearch-9.0.3-java/lib/logstash/outputs/elasticsearch/common.rb:24:in `register'",
"/data/app/logstash/logstash-core/lib/logstash/output_delegator_strategies/shared.rb:9:in `register'", "/data/app/logstash/logstash-core/lib/logstash/output_delegator.rb:42:in `register'",
"/data/app/logstash/logstash-core/lib/logstash/pipeline.rb:341:in `register_plugin'", "/data/app/logstash/logstash-core/lib/logstash/pipeline.rb:352:in `block in register_plugins'",
"org/jruby/RubyArray.java:1734:in `each'", "/data/app/logstash/logstash-core/lib/logstash/pipeline.rb:352:in `register_plugins'", "/data/app/logstash/logstash-core/lib/logstash/pipeline.rb:735:in `maybe_setup_out_plugins'",
"/data/app/logstash/logstash-core/lib/logstash/pipeline.rb:362:in `start_workers'", "/data/app/logstash/logstash-core/lib/logstash/pipeline.rb:289:in `run'", "/data/app/logstash/logstash-core/lib/logstash/pipeline.rb:249:in `block in start'"],
:thread=>"#"}
[2018-10-19T05:15:31,210][ERROR][logstash.agent ]
Failed to execute action {:id=>:main, :action_type=>LogStash::ConvergeResult::FailedAction, :message=>"Could not execute action: LogStash::PipelineAction::Create/pipeline_id:main, action_result: false", :backtrace=>nil}
报错信息很长,复制下来分析一下,可以定位到具体的错误,一般都是配置问题,可以发现这个报错报的是es的输出hosts有问题,修改即可。