# Proxy\_url on Logstash with x-pack

**URL:** <https://discuss.elastic.co/t/proxy-url-on-logstash-with-x-pack/205101>\
**Category:** Logstash\
**Created:** [October 24, 2019, 2:54pm UTC](https://discuss.elastic.co/t/proxy-url-on-logstash-with-x-pack/205101 "2019-10-24T14:54:59Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![hardwarehacker](https://avatars.discourse-cdn.com/v4/letter/h/a9a28c/32.png) [@hardwarehacker](https://discuss.elastic.co/u/hardwarehacker)\
**Post date:** [October 24, 2019, 2:54pm UTC](https://discuss.elastic.co/t/proxy-url-on-logstash-with-x-pack/205101/1 "2019-10-24T14:54:59Z")

</div>

My Logstash is running behind a proxy server with all the logs successfully delivered to Elasticsearch Cloud. Now I'm trying to enable x-pack on logstash and looks like xpack is not following my proxy. Besides that I can't found any doc related to enable proxy on logstash with x-pack.

My es output  
...  
output {  
elasticsearch {  
hosts =\> "[https://xxx.europe-west1.gcp.cloud.es.io:9243/](https://xxx.europe-west1.gcp.cloud.es.io:9243/)"  
password =\> "xxxx"  
user =\> "logstash\_internal"  
proxy =\> "[http://proxy.my.url:8080](http://proxy.my.url:8080/)"  
}  
}  
...

I tried to set all possible variables to setup the proxy but it didn't work .

JRUBY\_OPTS="-J-Dhttp.proxyHost=proxy.myhost.local -J-Dhttp.proxyPort=8080 -J-Dhttps.proxyHost=proxy.myhost.local -J-Dhttps.proxyPort=8080"  
http\_proxy="[http://proxy.myhost.local:8080](http://proxy.myhost.local:8080)"  
https\_proxy="[http://proxy.myhost.local:8080](http://proxy.myhost.local:8080)"  
HTTP\_PROXY="[http://proxy.myhost.local:8080](http://proxy.myhost.local:8080)"  
HTTPS\_PROXY="[http://proxy.myhost.local:8080](http://proxy.myhost.local:8080)"  
LS\_JAVA\_OPTS=" -Dhttp.proxyHost=proxy.myhost.local -Dhttp.proxyPort=8080 -Dhttps.proxyHost=proxy.myhost.local -Dhttps.proxyPort=8080"

---

<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 21, 2019, 2:55pm UTC](https://discuss.elastic.co/t/proxy-url-on-logstash-with-x-pack/205101/2 "2019-11-21T14:55:10Z")

</div>

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