# Connection of logstash hosted in one server with the elastic search hosted in another server

**URL:** <https://discuss.elastic.co/t/connection-of-logstash-hosted-in-one-server-with-the-elastic-search-hosted-in-another-server/159703>\
**Category:** Elasticsearch\
**Created:** [December 6, 2018, 9:51am UTC](https://discuss.elastic.co/t/connection-of-logstash-hosted-in-one-server-with-the-elastic-search-hosted-in-another-server/159703 "2018-12-06T09:51:38Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Archana\_Moharana](https://avatars.discourse-cdn.com/v4/letter/a/a5b964/32.png) [@Archana\_Moharana](https://discuss.elastic.co/u/Archana_Moharana)\
**Post date:** [December 6, 2018, 9:51am UTC](https://discuss.elastic.co/t/connection-of-logstash-hosted-in-one-server-with-the-elastic-search-hosted-in-another-server/159703/1 "2018-12-06T09:51:38Z")

</div>

Hello,  
I am trying to push the files to elastic search hosted in a different server. But unable to make the connection from logstash to elastic search as both are in different servers. I even tried to change the config files of both, even made es network host to 0.0.0.0, but still logstash is unable to reach es.

Can anyone please help me with this issue.  
Thank you

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [December 6, 2018, 10:34am UTC](https://discuss.elastic.co/t/connection-of-logstash-hosted-in-one-server-with-the-elastic-search-hosted-in-another-server/159703/2 "2018-12-06T10:34:41Z")

</div>

Start to share the logs of elasticsearch when it starts.

Share your logstash config file as well.

Please format it according the rules of this forum. See [About the Elasticsearch category](https://discuss.elastic.co/t/about-the-elasticsearch-category/21).

---

<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:** [January 3, 2019, 10:34am UTC](https://discuss.elastic.co/t/connection-of-logstash-hosted-in-one-server-with-the-elastic-search-hosted-in-another-server/159703/3 "2019-01-03T10:34:42Z")

</div>

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