# Sending data from Logstash to Elasticsearch running on two different server

**URL:** <https://discuss.elastic.co/t/sending-data-from-logstash-to-elasticsearch-running-on-two-different-server/293311>\
**Category:** Logstash\
**Created:** [January 3, 2022, 5:55am UTC](https://discuss.elastic.co/t/sending-data-from-logstash-to-elasticsearch-running-on-two-different-server/293311 "2022-01-03T05:55:03Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![mangesh\_shinde](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mangesh_shinde/32/93271_2.png) [@mangesh\_shinde](https://discuss.elastic.co/u/mangesh_shinde)\
**Post date:** [January 3, 2022, 5:55am UTC](https://discuss.elastic.co/t/sending-data-from-logstash-to-elasticsearch-running-on-two-different-server/293311/1 "2022-01-03T05:55:03Z")

</div>

I have log files on one server and elastic on different.  
I want to use Logstash only not any beat for that.  
so mentioning elastic ip:port output in logstash.  
Is it possible to have logstash and Elasticsearch on different server?  
Do I need to add any other conf in logstash or Elasticsearch.

---

<div class="post-metadata">

**Author:** ![Aniket\_Pant](https://avatars.discourse-cdn.com/v4/letter/a/77aa72/32.png) [@Aniket\_Pant](https://discuss.elastic.co/u/Aniket_Pant)\
**Post date:** [January 3, 2022, 5:59am UTC](https://discuss.elastic.co/t/sending-data-from-logstash-to-elasticsearch-running-on-two-different-server/293311/2 "2022-01-03T05:59:40Z")

</div>

> [@mangesh\_shinde](#):
>
> Is it possible to have logstash and Elasticsearch on different server?

yes but make sure that you open your port on firewall.

> [@mangesh\_shinde](#):
>
> Do I need to add any other conf in logstash or Elasticsearch.

you just need to provide input -\> filter(optional)-\>Output in logstash pipeline file.Thats it.

---

<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 31, 2022, 5:59am UTC](https://discuss.elastic.co/t/sending-data-from-logstash-to-elasticsearch-running-on-two-different-server/293311/3 "2022-01-31T05:59:59Z")

</div>

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