Logstash (http output plugin) to logstash (http inout plugin)

Hi Everyone,
I am trying to send logs from one logstash instance to another instance using http output plugin and http input plugin.
I am able to to it with following configuration:
(Sending Instance)
output {
http {
url => "http://x.x.x.x:5044"
http_method => "post"
}
}
(Receiving Instance)
input {
http {
id => "my_plugin_id"
host => "0.0.0.0"
port => 5044
}
}

But when I try to setup 1-way SSL for the above communication with the following configuration:

output {
http {
url => "https://x.x.x.x:5044"
http_method => "post"
cacert => "/**/ca_cert.pem"
}
}

ca_cert.pem is the CA used to sign the certificate for the receiving instance

input {
http {
id => "my_plugin_id"
host => "0.0.0.0"
port => 5044
ssl => true
keystore => "//truststore.jks"
keystore_password => "
*"
}
}

I keep receiving the below error message:
Could not fetch URL {:url=>"https://x.x.x.x:5044", ---- :headers=>{"Content-Type"=>"application/json"}, :message=>"SSL peer shut down incorrectly", :class=>"Manticore::ClientProtocolException", :backtrace=>nil, :will_retry=>true}

Can someone please suggest how should I configure the plugins for 1-way SSL?

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