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

**URL:** https://discuss.elastic.co/t/logstash-http-output-plugin-to-logstash-http-inout-plugin/142303
**Category:** Logstash
**Created:** [July 31, 2018, 8:02am UTC](https://discuss.elastic.co/t/logstash-http-output-plugin-to-logstash-http-inout-plugin/142303 "2018-07-31T08:02:32Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![sakshi\_saxena](https://avatars.discourse-cdn.com/v4/letter/s/97f17d/32.png) [@sakshi\_saxena](https://discuss.elastic.co/u/sakshi_saxena)
#### Post date: [July 31, 2018, 8:02am UTC](https://discuss.elastic.co/t/logstash-http-output-plugin-to-logstash-http-inout-plugin/142303/1 "2018-07-31T08:02:32Z")

</div>

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://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](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](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?

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)
#### Post date: [August 28, 2018, 8:02am UTC](https://discuss.elastic.co/t/logstash-http-output-plugin-to-logstash-http-inout-plugin/142303/2 "2018-08-28T08:02:45Z")

</div>

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