# Is it possible to output to an elasticsearch instance via reverse proxy uri?

**URL:** <https://discuss.elastic.co/t/is-it-possible-to-output-to-an-elasticsearch-instance-via-reverse-proxy-uri/164180>\
**Category:** Logstash\
**Created:** [January 14, 2019, 5:38pm UTC](https://discuss.elastic.co/t/is-it-possible-to-output-to-an-elasticsearch-instance-via-reverse-proxy-uri/164180 "2019-01-14T17:38:57Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Matt\_Vasquez](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/matt_vasquez/32/22088_2.png) [@Matt\_Vasquez](https://discuss.elastic.co/u/Matt_Vasquez)\
**Post date:** [January 14, 2019, 5:38pm UTC](https://discuss.elastic.co/t/is-it-possible-to-output-to-an-elasticsearch-instance-via-reverse-proxy-uri/164180/1 "2019-01-14T17:38:58Z")

</div>

I am using Apache to reverse proxy to Elasticsearch via a uri location (https://reverse\_proxy/elastic). I am using a reverse proxy for external users due to firewall constraints which block 9200 but allow 443..

Here is my Logstash output configuration

```
output {

    stdout { codec => json_lines }

    elasticsearch {

    hosts => "https://reverse_proxy:443/elastic"

    ssl => true

    cacert => "..\.\certs\rootca.pem"

    user =? "elastic"

    password => "${es_pass}"

    index =>; "dashboard_test"

    }

    }

```

This is the warning I get when running logstash:

`[2019-01-14T11:37:23,419][WARN][logstash.outputs.elasticsearch] Attempted to resurrect connection to dead ES instance, but got an error. {:url=>"https://elastic:xxxxxx@reverse_proxy:443/elastic", :error_type=>LogStash::Outputs::ElasticSearch::HttpClient::Pool::HostUnreachableError, :error=>"Elasticsearch Unreachable: [https://elastic:xxxxxx@reverse_proxy:443/elastic][Manticore::SocketException] Software caused connection abort: recv failed"}`

---

<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:** [February 11, 2019, 5:39pm UTC](https://discuss.elastic.co/t/is-it-possible-to-output-to-an-elasticsearch-instance-via-reverse-proxy-uri/164180/2 "2019-02-11T17:39:02Z")

</div>

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