# Shipping logs using websocket instead filebeat to logstash

**URL:** <https://discuss.elastic.co/t/shipping-logs-using-websocket-instead-filebeat-to-logstash/253677>\
**Category:** Logstash\
**Created:** [October 29, 2020, 10:50am UTC](https://discuss.elastic.co/t/shipping-logs-using-websocket-instead-filebeat-to-logstash/253677 "2020-10-29T10:50:58Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![sudhakar](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sudhakar/32/74789_2.png) [@sudhakar](https://discuss.elastic.co/u/sudhakar)\
**Post date:** [October 29, 2020, 10:50am UTC](https://discuss.elastic.co/t/shipping-logs-using-websocket-instead-filebeat-to-logstash/253677/1 "2020-10-29T10:50:58Z")

</div>

Hi,

I am trying to use websocket instead of filebeat to ship the logs from a log file to logstash.

I can see that the configuration for the logstash config for input is something like below:

```auto
input {
  websocket {
    codec => "plain"
    url => "ws://127.0.0.1:9300/"
  }
}

```

But this is the client side , If I understand it correctly. How am I supposed to create websocket server to which this client request?

And moreover how is that server supposed tot send the logs to this client as was done initially by filebeat.

Appreciate any sort of help in clearing the doubt and guidance.

Thanks.

---

<div class="post-metadata">

**Author:** ![Wolfram\_Haussig](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/wolfram_haussig/32/70528_2.png) [@Wolfram\_Haussig](https://discuss.elastic.co/u/Wolfram_Haussig)\
**Post date:** [October 29, 2020, 11:35am UTC](https://discuss.elastic.co/t/shipping-logs-using-websocket-instead-filebeat-to-logstash/253677/2 "2020-10-29T11:35:49Z")

</div>

Hi,

As you correctly stated Logstash does not currently support acting as a websocket server. Why don't you use a simple [http input](https://www.elastic.co/guide/en/logstash/current/plugins-inputs-http.html#plugins-inputs-http-password)? You can use a simple HTTP request from any programming language to send data.

Best regards  
Wolfram

---

<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:** [November 26, 2020, 11:35am UTC](https://discuss.elastic.co/t/shipping-logs-using-websocket-instead-filebeat-to-logstash/253677/3 "2020-11-26T11:35:53Z")

</div>

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