# Logstash Output Websocket with SSL

**URL:** <https://discuss.elastic.co/t/logstash-output-websocket-with-ssl/114628>\
**Category:** Logstash\
**Created:** [January 8, 2018, 11:56pm UTC](https://discuss.elastic.co/t/logstash-output-websocket-with-ssl/114628 "2018-01-08T23:56:08Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![sisrael](https://avatars.discourse-cdn.com/v4/letter/s/0ea827/32.png) [@sisrael](https://discuss.elastic.co/u/sisrael)\
**Post date:** [January 8, 2018, 11:56pm UTC](https://discuss.elastic.co/t/logstash-output-websocket-with-ssl/114628/1 "2018-01-08T23:56:08Z")

</div>

Hi,  
I have logstash running on my webserver with the websocket output plugin. The plugin works great over http but my website uses https. How can I set up logstash to allow me to connect via "wss://"? As far as I can tell I there isn't a way for the logstash output websocket plugin to specify a certificate/key.

This is the error I get, only happens over wss and not ws.  
`WebSocket connection to 'wss://my-site:my-port/' failed: Error in connection establishment: net::ERR_CONNECTION_CLOSED`  
I need logstash to send logs over websocket, is there some other websocket plugin I should be using?

Thanks,  
Shane

---

<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:** [February 5, 2018, 11:56pm UTC](https://discuss.elastic.co/t/logstash-output-websocket-with-ssl/114628/2 "2018-02-05T23:56:38Z")

</div>

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