# Pass Data to Elasticsearch from a Remote Server

**URL:** https://discuss.elastic.co/t/pass-data-to-elasticsearch-from-a-remote-server/249945
**Category:** Elasticsearch
**Created:** [September 25, 2020, 9:42am UTC](https://discuss.elastic.co/t/pass-data-to-elasticsearch-from-a-remote-server/249945 "2020-09-25T09:42:37Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Amantha](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/amantha/32/73592_2.png) [@Amantha](https://discuss.elastic.co/u/Amantha)
#### Post date: [September 25, 2020, 9:42am UTC](https://discuss.elastic.co/t/pass-data-to-elasticsearch-from-a-remote-server/249945/1 "2020-09-25T09:42:37Z")

</div>

I have two PCs. Assueme that they are Server1 and Server2.  
Logstash is installed in Server2 and Elasticsearch is configured in Server1. **I want to send filtered logstash data from Server2 to Server1.**  
Which configurations shall I do?  
( **please give me some example configuaration file of .conf file, Logstash.yml, Elasticsearch.yml** )

---

<div class="post-metadata">

### Author: ![spinscale](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/spinscale/32/25011_2.png) [@spinscale](https://discuss.elastic.co/u/spinscale)
#### Post date: [September 28, 2020, 8:58am UTC](https://discuss.elastic.co/t/pass-data-to-elasticsearch-from-a-remote-server/249945/2 "2020-09-28T08:58:10Z")

</div>

Please take a look at the [Getting Started With Logstash](https://www.elastic.co/guide/en/logstash/7.9/getting-started-with-logstash.html) documentation along with the [Getting started with the Elastic Stack](https://www.elastic.co/guide/en/elastic-stack-get-started/current/get-started-elastic-stack.html) docs.

All the volunteers in this forum are happy to assist when you run into problems, but please take the time to read the documentation before letting others write your configuration, so you can provide some context what is not working as expected.

See also [https://www.elastic.co/help](https://www.elastic.co/help)

Thank you!

---

<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: [October 26, 2020, 8:58am UTC](https://discuss.elastic.co/t/pass-data-to-elasticsearch-from-a-remote-server/249945/3 "2020-10-26T08:58:13Z")

</div>

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