# Elasticsearch input running behind a proxy

**URL:** <https://discuss.elastic.co/t/elasticsearch-input-running-behind-a-proxy/133530>\
**Category:** Logstash\
**Created:** [May 28, 2018, 11:59am UTC](https://discuss.elastic.co/t/elasticsearch-input-running-behind-a-proxy/133530 "2018-05-28T11:59:20Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![madou23](https://avatars.discourse-cdn.com/v4/letter/m/3ab097/32.png) [@madou23](https://discuss.elastic.co/u/madou23)\
**Post date:** [May 28, 2018, 11:59am UTC](https://discuss.elastic.co/t/elasticsearch-input-running-behind-a-proxy/133530/1 "2018-05-28T11:59:20Z")

</div>

Hi all,  
I'm trying to get data from an Elasticsearch cluster to another via Logstash the problem is that the input cluster is running behind a proxy. This is my configuration:

```
input {
  elasticsearch {
    hosts => "myhost:9200"
    index => "test"
    user => "xxxx"
    password => "xxxx" 
 }
}
output {
  elasticsearch {
    hosts => "localhost:9200"
    index => "test"
  }
}

```

I always get this error:

```
[ERROR] 2018-05-28 13:41:44.800 [[main]<elasticsearch] pipeline - A plugin had an unrecoverable error. Will restart this plugin.
  Pipeline_id:main
  Plugin: <LogStash::Inputs::Elasticsearch...
  Error: Net::ReadTimeout
  Exception: Faraday::TimeoutError
  ...

```

It tried to add this environment variable when running Logstash but nothing has changed.  
`export LS_JAVA_OPTS=-Dhttp.proxyHost=myproxy.mydomain.com -Dhttp.proxyPort=8080`  
I also tried to add the `http_proxy` variable.

---

<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:** [June 25, 2018, 12:12pm UTC](https://discuss.elastic.co/t/elasticsearch-input-running-behind-a-proxy/133530/2 "2018-06-25T12:12:24Z")

</div>

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