# How do I set the proxy for logstash plugin install on windows?

**URL:** <https://discuss.elastic.co/t/how-do-i-set-the-proxy-for-logstash-plugin-install-on-windows/167041>\
**Category:** Logstash\
**Created:** [February 4, 2019, 11:01pm UTC](https://discuss.elastic.co/t/how-do-i-set-the-proxy-for-logstash-plugin-install-on-windows/167041 "2019-02-04T23:01:46Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Freebird](https://avatars.discourse-cdn.com/v4/letter/f/d78d45/32.png) [@Freebird](https://discuss.elastic.co/u/Freebird)\
**Post date:** [February 4, 2019, 11:01pm UTC](https://discuss.elastic.co/t/how-do-i-set-the-proxy-for-logstash-plugin-install-on-windows/167041/1 "2019-02-04T23:01:47Z")

</div>

I'm trying to install the elapsed plug-in and keep getting a connection error.  
Gooogling reveals that logstash doesn't use the browser proxy.

The [documentation](https://www.elastic.co/guide/en/logstash/6.5/working-with-plugins.html) indicates to 'export' the proxy - but that's a unix command that is not know to Windows.

I tried SETting the ES\_JAVA\_OPTS but that hasn't helped (and ES implies elastic to me, rather than logstash).

So I need help. where do I configure the proxy setting for logstash (on windows) to go out to the internet?

thanks

---

<div class="post-metadata">

**Author:** ![Freebird](https://avatars.discourse-cdn.com/v4/letter/f/d78d45/32.png) [@Freebird](https://discuss.elastic.co/u/Freebird)\
**Post date:** [February 5, 2019, 4:57am UTC](https://discuss.elastic.co/t/how-do-i-set-the-proxy-for-logstash-plugin-install-on-windows/167041/2 "2019-02-05T04:57:54Z")

</div>

Got help from [https://github.com/elastic/logstash/issues/6044](https://github.com/elastic/logstash/issues/6044)

Seems in addition to the ES\_JAVA\_OPTS you also need to set JRUBY\_OPTS. So;

SET ES\_JAVA\_OPTS="-Dhttp.proxyHost= **yourproxyname** -Dhttp.proxyPort=3128 -Dhttps.proxyHost= **yourproxyname** -Dhttps.proxyPort=3128"

SET JRUBY\_OPTS="-J-Dhttp.proxyHost= **yourproxyname** -J-Dhttp.proxyPort=3128 -J-Dhttps.proxyHost= **yourproxyname** -J-Dhttps.proxyPort=3128"

replacing the **yourproxyname** with the DNS name of your proxy, and also changing the port to match your proxy

---

<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:** [March 5, 2019, 4:57am UTC](https://discuss.elastic.co/t/how-do-i-set-the-proxy-for-logstash-plugin-install-on-windows/167041/3 "2019-03-05T04:57:59Z")

</div>

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