# How to specifiy proxy with websoket input plugin

**URL:** <https://discuss.elastic.co/t/how-to-specifiy-proxy-with-websoket-input-plugin/300174>\
**Category:** Logstash\
**Created:** [March 21, 2022, 9:17am UTC](https://discuss.elastic.co/t/how-to-specifiy-proxy-with-websoket-input-plugin/300174 "2022-03-21T09:17:52Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![zid57](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/zid57/32/94548_2.png) [@zid57](https://discuss.elastic.co/u/zid57)\
**Post date:** [March 21, 2022, 9:17am UTC](https://discuss.elastic.co/t/how-to-specifiy-proxy-with-websoket-input-plugin/300174/1 "2022-03-21T09:17:52Z")

</div>

Hello all,

I would need to use the logstash websocket as input plugin.  
I installed it and it works.  
However, I'm not able to retrieve data from the websocket URL.  
The case is simple.  
In order to reach internet, my logstash server needs to use a web proxy.  
The Linux proxy env variables are set up to use a web proxy. And the network tcpdump shows me that logstash still tries to reach the websocket directly and not via the proxy.  
Here my logstash config:

```auto
 input {
      websocket {
        id => "my_plugin_id"
        url => "http://ris-live.ripe.net/v1/ws/?client=py-example-1"
        tags => ["ris"]
      }
    }

```

According the websocket plugin documention, there is no option to specifiy a web proxy.  
Is it something which is supported ?

Thank you,

Isidore

---

<div class="post-metadata">

**Author:** ![Badger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/badger/32/25190_2.png) [@Badger](https://discuss.elastic.co/u/Badger)\
**Post date:** [March 21, 2022, 5:12pm UTC](https://discuss.elastic.co/t/how-to-specifiy-proxy-with-websoket-input-plugin/300174/2 "2022-03-21T17:12:30Z")

</div>

> [@zid57](#):
>
> Is it something which is supported ?

I do not think so. There is an [open issue](https://github.com/jordansissel/ruby-ftw/issues/21) on FTW for this (and that is what the [input uses](https://github.com/logstash-plugins/logstash-input-websocket/blob/2788bd501a4c1b5da5ed622db8b2c1430449834a/lib/logstash/inputs/websocket.rb#L46)).

---

<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:** [April 18, 2022, 5:13pm UTC](https://discuss.elastic.co/t/how-to-specifiy-proxy-with-websoket-input-plugin/300174/3 "2022-04-18T17:13:05Z")

</div>

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