Hello, I am running into an issue using the input to connect to our elastic nodes to retrieve an index, however, im running into the following error
Error: Received fatal alert: handshake_failure
Exception: Faraday::SSLError
Stack: org/jruby/ext/openssl/SSLSocket.java:276:inconnect_nonblock' uri:classloader:/META-INF/jruby.home/lib/ruby/stdlib/net/protocol.rb:44:in
ssl_socket_connect'
uri:classloader:/META-INF/jruby.home/lib/ruby/stdlib/net/http.rb:985:inconnect' uri:classloader:/META-INF/jruby.home/lib/ruby/stdlib/net/http.rb:924:in
do_start'
uri:classloader:/META-INF/jruby.home/lib/ruby/stdlib/net/http.rb:913:instart' uri:classloader:/META-INF/jruby.home/lib/ruby/stdlib/net/http.rb:1465:in
request'
/opt/logstash-7.2.0/vendor/bundle/jruby/2.5.0/gems/faraday-0.9.2/lib/faraday/adapter/net_http.rb:82:inperform_request' /opt/logstash-7.2.0/vendor/bundle/jruby/2.5.0/gems/faraday-0.9.2/lib/faraday/adapter/net_http.rb:40:in
block in call'
/opt/logstash-7.2.0/vendor/bundle/jruby/2.5.0/gems/faraday-0.9.2/lib/faraday/adapter/net_http.rb:87:inwith_net_http_connection' /opt/logstash-7.2.0/vendor/bundle/jruby/2.5.0/gems/faraday-0.9.2/lib/faraday/adapter/net_http.rb:32:in
call'
/opt/logstash-7.2.0/vendor/bundle/jruby/2.5.0/gems/faraday-0.9.2/lib/faraday/rack_builder.rb:139:inbuild_response' /opt/logstash-7.2.0/vendor/bundle/jruby/2.5.0/gems/faraday-0.9.2/lib/faraday/connection.rb:377:in
run_request'
/opt/logstash-7.2.0/vendor/bundle/jruby/2.5.0/gems/elasticsearch-transport-5.0.5/lib/elasticsearch/transport/transport/http/faraday.rb:23:inblock in perform_request' /opt/logstash-7.2.0/vendor/bundle/jruby/2.5.0/gems/elasticsearch-transport-5.0.5/lib/elasticsearch/transport/transport/base.rb:262:in
perform_request'
/opt/logstash-7.2.0/vendor/bundle/jruby/2.5.0/gems/elasticsearch-transport-5.0.5/lib/elasticsearch/transport/transport/http/faraday.rb:20:inperform_request' /opt/logstash-7.2.0/vendor/bundle/jruby/2.5.0/gems/elasticsearch-transport-5.0.5/lib/elasticsearch/transport/client.rb:131:in
perform_request'
/opt/logstash-7.2.0/vendor/bundle/jruby/2.5.0/gems/elasticsearch-api-5.0.5/lib/elasticsearch/api/actions/search.rb:183:insearch' /opt/logstash-7.2.0/vendor/bundle/jruby/2.5.0/gems/logstash-input-elasticsearch-4.3.1/lib/logstash/inputs/elasticsearch.rb:280:in
search_request'
/opt/logstash-7.2.0/vendor/bundle/jruby/2.5.0/gems/logstash-input-elasticsearch-4.3.1/lib/logstash/inputs/elasticsearch.rb:228:indo_run_slice' /opt/logstash-7.2.0/vendor/bundle/jruby/2.5.0/gems/logstash-input-elasticsearch-4.3.1/lib/logstash/inputs/elasticsearch.rb:209:in
do_run'
/opt/logstash-7.2.0/vendor/bundle/jruby/2.5.0/gems/logstash-input-elasticsearch-4.3.1/lib/logstash/inputs/elasticsearch.rb:197:inrun' /opt/logstash-7.2.0/logstash-core/lib/logstash/java_pipeline.rb:309:in
inputworker'
/opt/logstash-7.2.0/logstash-core/lib/logstash/java_pipeline.rb:302:in `block in start_input'
Our SSL is allowed and works for all other output config files which use the same fields plus two more, ilm_enabled and ssl_certificate_verify. This is the input for our conf file.
input {
elasticsearch {
hosts => [ES_HOSTS]
user => "${SERVICE_ACC}"
password => "${SERVICE_PW}"
ssl => true
ca_file => "FILE_PATH"
index => "indexname"
query => '{"query": {"match_all": {}}}'
}
}