Logstash 연결 kafka 출력 오류: Error registering plugin

6480 단어 ElasticSearch
Error registering plugin {:pipeline_id=>"main", :plugin=>"#<:outputdelegator:0x761d397b entries="4" default_proc="nil">, 
@structured_lookup_mutex=#<0x682868b7>, 
@fast_lookup=#<:map:0x00000000000fb0 entries="63" default_proc="nil">>>>, 
@namespace_name=[:stats, :pipelines, :main, :plugins, :outputs, :\"7ab8b6ae5bdf924bc8a49e7d126a7a4e7af5ebab0928fb0ab7a8e0d02a0c33b9\"]>, 
@metric=#<:instrument::namespacedmetric:0x6537c2ac entries="4" default_proc="nil">, 
structured_lookup_mutex=#<0x682868b7>, @fast_lookup=#<:map:0x00000000000fb0 entries="63" default_proc="nil">>>>, 
@namespace_name=[:stats, :pipelines, :main, :plugins, :outputs]>, 
@out_counter=org.jruby.proxy.org.logstash.instrument.metrics.counter.LongCounter$Proxy2 -  name: out value:0, 
@strategy=#<:outputdelegatorstrategies::shared:0x6cc2d5b4 hosts="">[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=><:codecs::plain id="">\"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=#<:instrument::namespacedmetric:0x59cb2b5c entries="4" default_proc="nil">, @structured_lookup_mutex=#<0x682868b7>,
 @fast_lookup=#<:map:0x00000000000fb0 entries="63" default_proc="nil">>>>, @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=>"#<0x66d35df6 run="">"}
[2018-10-19T05:15:31,164][ERROR][logstash.pipeline        ] 
Pipeline aborted due to error 
{:pipeline_id=>"main", :exception=>#<:configurationerror: bad="" scheme="" found="" should="" be="" one="" of="" http="">, 
: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=>"#<0x66d35df6 run="">"}
[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에 문제가 있다는 것을 발견할 수 있고 수정하면 된다.

좋은 웹페이지 즐겨찾기