Logstrash output elasticsearch plugin nginx https error

Install info :

  • elastic version 5.5
  • logstash version 6.2.0

My [elastic] repository is:

I do not use [x-pack]. Instead, use nginx [proxy](https://es.myserver.com => localhost: 9200) and basic auth (htpasswd).
I am going to use [elasticsearch] as an [output plugin].
My [output] setting is as follows.

input {
  http_poller {
    urls => {
      serviceapi => {
        method => get
        url => "..."
        headers => {
          Accept => "application/xml"
        }
       }
    }
    request_timeout => 60
	schedule => {every => "15s"}
  }
}

output {
	stdout {
		codec => rubydebug
	}
	
	elasticsearch {
        hosts => ["https://es.myserver.com"]
        user => "my-user"
        password => "my-password"
	}
}

error message :
[2018-02-14T16:03:32,036][ERROR][logstash.pipeline ] Error registering plugin {:pipeline_id=>"airkorea", :plugin=>"#<LogStash::OutputDelegator:0x4a65e595 <LogStash::Instrument::MetricStore:0x2b7cbdab @store=#<Concurrent::map:0x00000000000fb0 entries=4 default_proc=nil>, @structured_lookup_mutex=#Mutex:0x40f55b30, @fast_lookup=#<Concurrent::map:0x00000000000fb4 entries=67 default_proc=nil>>>>, @namespace_name=[:stats, :pipelines, :airkorea, :plugins, :outputs, :ff5553864febdd9f8f8abb2570f26e8ca04e890fc5190327c99f5cf0b58e9b97, :events]>, @output_class=LogStash::Outputs::ElasticSearch>", :error=>"Unrecognized SSL message, plaintext connection?", :thread=>"#<Thread:0x2a7cff37 run>"}
[2018-02-14T16:03:32,075][ERROR][logstash.pipeline ] Pipeline aborted due to error {:pipeline_id=>"airkorea", :exception=>#<Manticore::UnknownException: Unrecognized SSL message, plaintext connection?>, :backtrace=>["/home/yongun/demo/elastic-stack/logstash-6.2.0/vendor/bundle/jruby/2.3.0/gems/manticore-0.6.1-java/lib/manticore/response.rb:37:in block in initialize'", "/home/yongun/demo/elastic-stack/logstash-6.2.0/vendor/bundle/jruby/2.3.0/gems/manticore-0.6.1-java/lib/manticore/response.rb:79:incall'", "/home/yongun/demo/elastic-stack/logstash-6.2.0/vendor/bundle/jruby/2.3.0/gems/logstash-output-elasticsearch-9.0.2-java/lib/logstash/outputs/elasticsearch/http_client/manticore_adapter.rb:74:in perform_request'", "/home/yongun/demo/elastic-stack/logstash-6.2.0/vendor/bundle/jruby/2.3.0/gems/logstash-output-elasticsearch-9.0.2-java/lib/logstash/outputs/elasticsearch/http_client/pool.rb:287:inperform_request_to_url'", "/home/yongun/demo/elastic-stack/logstash-6.2.0/vendor/bundle/jruby/2.3.0/gems/logstash-output-elasticsearch-9.0.2-java/lib/logstash/outputs/elasticsearch/http_client/pool.rb:241:in block in healthcheck!'", "org/jruby/RubyHash.java:1343:ineach'", "/home/yongun/demo/elastic-stack/logstash-

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.