We are currently configuring SSL on logstash but after adding the SSL config to the elasticsearch output an error is being generated which I cannot determine what is generating the error.
We have a security policy that stipulates that passwords cannot be stored on our servers in plain text including environment variables. I have created the logstash keystore with no password to comply with our policy. The output I am using is:
output {
elasticsearch {
hosts => ["https://localhost:9200"]
index => "logstash-%{+YYYY.MM.dd}"
template_overwrite => true
ilm_enabled => false
ssl => true
ssl_certificate_verification => true
cacert => 'path\to\logstash.cer'
keystore => 'path\to\logstash.keystore'
keystore_password => ''
user => "${ES_USER}"
password => "${ES_PWD}"
}
}
The error generated is:
[ERROR][logstash.javapipeline ] /outputs/elasticsearch/C:/Users/peterc/Documents/ELK/ELK6.0.0/logstash-7.3.0/vendor/bundle/jruby/2.5.0/gems/logstash-output-elasticsearch-10.1.0-java/lib/logstash/outputs/elasticsearch/http_client.rb)", "C_3a_.Users.peterc.Documents.ELK.ELK6_dot_0_dot_0.logstash_minus_7_dot_3_dot_0.vendor.bundle.jruby.$2_dot_5_dot_0.gems.logstash_minus_output_minus_elasticsearch_minus_10_dot_1_dot_0_minus_java.lib.logstash.outputs.elasticsearch.http_client.build_pool(C:/Users/peterc/Documents/ELK/ELK6.0.0/logstash-7.3.0/vendor/bundle/jruby/2.5.0/gems/logstash-output-elasticsearch-10.1.0-java/lib/logstash/outputs/elasticsearch/http_client.rb:286)", "C_3a_.Users.peterc.Documents.ELK.ELK6_dot_0_dot_0.logstash_minus_7_dot_3_dot_0.vendor.bundle.jruby.$2_dot_5_dot_0.gems.logstash_minus_output_minus_elasticsearch_minus_10_dot_1_dot_0_minus_java.lib.logstash.outputs.elasticsearch.http_client.RUBY$method$build_pool$0$VARARGS(C_3a_/Users/peterc/Documents/ELK/ELK6_dot_0_dot_0/logstash_minus_7_dot_3_dot_0/vendor/bundle/jruby/$2_dot_5_dot_0/gems/logstash_minus_output_minus_elasticsearch_minus_10_dot_1_dot_0_minus_java/lib/logstash/outputs/elasticsearch/C:/Users/peterc/Documents/ELK/ELK6.0.0/logstash-7.3.0/vendor/bundle/jruby/2.5.0/gems/logstash-output-elasticsearch-10.1.0-java/lib/logstash/outputs/elasticsearch/http_client.rb)", "C_3a_.Users.peterc.Documents.ELK.ELK6_dot_0_dot_0.logstash_minus_7_dot_3_dot_0.vendor.bundle.jruby.$2_dot_5_dot_0.gems.logstash_minus_output_minus_elasticsearch_minus_10_dot_1_dot_0_minus_java.lib.logstash.outputs.elasticsearch.http_client.initialize(C:/Users/peterc/Documents/ELK/ELK6.0.0/logstash-7.3.0/vendor/bundle/jruby/2.5.0/gems/logstash-output-elasticsearch-10.1.0-java/lib/logstash/outputs/elasticsearch/http_client.rb:64)", "org.jruby.RubyClass.newInstance(org/jruby/RubyClass.java:915)", "org.jruby.RubyClass$INVOKER$i$newInstance.call(org/jruby/RubyClass$INVOKER$i$newInstance.gen)", "C_3a_.Users.peterc.Documents.ELK.ELK6_dot_0_dot_0.logstash_minus_7_dot_3_dot_0.vendor.bundle.jruby.$2_dot_5_dot_0.gems.logstash_minus_output_minus_elasticsearch_minus_10_dot_1_dot_0_minus_java.lib.logstash.outputs.elasticsearch.http_client_builder.create_http_client(C:/Users/peterc/Documents/ELK/ELK6.0.0/logstash-7.3.0/vendor/bundle/jruby/2.5.0/gems/logstash-output-elasticsearch-10.1.0-java/lib/logstash/outputs/elasticsearch/http_client_builder.rb:103)", "C_3a_.Users.peterc.Documents.ELK.ELK6_dot_0_dot_0.logstash_minus_7_dot_3_dot_0.vendor.bundle.jruby.$2_dot_5_dot_0.gems.logstash_minus_output_minus_elasticsearch_minus_10_dot_1_dot_0_minus_java.lib.logstash.outputs.elasticsearch.http_client_builder.RUBY$method$create_http_client$0$VARARGS(C_3a_/Users/peterc/Documents/ELK/ELK6_dot_0_dot_0/logstash_minus_7_dot_3_dot_0/vendor/bundle/jruby/$2_dot_5_dot_0/gems/logstash_minus_output_minus_elasticsearch_minus_10_dot_1_dot_0_minus_java/lib/logstash/outputs/elasticsearch/C:/Users/peterc/Documents/ELK/ELK6.0.0/logstash-7.3.0/vendor/bundle/jruby/2.5.0/gems/logstash-output-elasticsearch-10.1.0-java/lib/logstash/outputs/elasticsearch/http_client_builder.rb)", "C_3a_.Users.peterc.Documents.ELK.ELK6_dot_0_dot_0.logstash_minus_7_dot_3_dot_0.vendor.bundle.jruby.$2_dot_5_dot_0.gems.logstash_minus_output_minus_elasticsearch_minus_10_dot_1_dot_0_minus_java.lib.logstash.outputs.elasticsearch.http_client_builder.build(C:/Users/peterc/Documents/ELK/ELK6.0.0/logstash-7.3.0/vendor/bundle/jruby/2.5.0/gems/logstash-output-elasticsearch-10.1.0-java/lib/logstash/outputs/elasticsearch/http_client_builder.rb:99)", "C_3a_.Users.peterc.Documents.ELK.ELK6_dot_0_dot_0.logstash_minus_7_dot_3_dot_0.vendor.bundle.jruby.$2_dot_5_dot_0.gems.logstash_minus_output_minus_elasticsearch_minus_10_dot_1_dot_0_minus_java.lib.logstash.outputs.elasticsearch.http_client_builder.RUBY$method$build$0$VARARGS(C_3a_/Users/peterc/Documents/ELK/ELK6_dot_0_dot_0/logstash_minus_7_dot_3_dot_0/vendor/bundle/jruby/$2_dot_5_dot_0/gems/logstash_minus_output_minus_elasticsearch_minus_10_dot_1_dot_0_minus_java/lib/logstash/outputs/elasticsearch/C:/Users/peterc/Documents/ELK/ELK6.0.0/logstash-7.3.0/vendor/bundle/jruby/2.5.0/gems/logstash-output-elasticsearch-10.1.0-java/lib/logstash/outputs/elasticsearch/http_client_builder.rb)", "C_3a_.Users.peterc.Documents.ELK.ELK6_dot_0_dot_0.logstash_minus_7_dot_3_dot_0.vendor.bundle.jruby.$2_dot_5_dot_0.gems.logstash_minus_output_minus_elasticsearch_minus_10_dot_1_dot_0_minus_java.lib.logstash.outputs.elasticsearch.build_client(C:/Users/peterc/Documents/ELK/ELK6.0.0/logstash-7.3.0/vendor/bundle/jruby/2.5.0/gems/logstash-output-elasticsearch-10.1.0-java/lib/logstash/outputs/elasticsearch.rb:238)", "C_3a_.Users.peterc.Documents.ELK.ELK6_dot_0_dot_0.logstash_minus_7_dot_3_dot_0.vendor.bundle.jruby.$2_dot_5_dot_0.gems.logstash_minus_output_minus_elasticsearch_minus_10_dot_1_dot_0_minus_java.lib.logstash.outputs.elasticsearch.RUBY$method$build_client$0$VARARGS(C_3a_/Users/peterc/Documents/ELK/ELK6_dot_0_dot_0/logstash_minus_7_dot_3_dot_0/vendor/bundle/jruby/