# To collect logs from remote server

**URL:** https://discuss.elastic.co/t/to-collect-logs-from-remote-server/227798
**Category:** Elasticsearch
**Created:** [April 13, 2020, 4:09pm UTC](https://discuss.elastic.co/t/to-collect-logs-from-remote-server/227798 "2020-04-13T16:09:53Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![rakeshraagu2](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rakeshraagu2/32/66283_2.png) [@rakeshraagu2](https://discuss.elastic.co/u/rakeshraagu2)
#### Post date: [April 13, 2020, 4:09pm UTC](https://discuss.elastic.co/t/to-collect-logs-from-remote-server/227798/1 "2020-04-13T16:09:53Z")

</div>

Hi all,

I have a elk stack on my server which consists of elasticsearch,beats and kibana. Now I need to collect logs from a remote server using filebeat. What all configurations are need to done on the elk node and remote node. Kindly help.

Thank you in advance

---

<div class="post-metadata">

### Author: ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)
#### Post date: [April 13, 2020, 4:38pm UTC](https://discuss.elastic.co/t/to-collect-logs-from-remote-server/227798/2 "2020-04-13T16:38:41Z")

</div>

Install Filebeat on the remote server and point it to you Elasticsearch cluster.

---

<div class="post-metadata">

### Author: ![rakeshraagu2](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rakeshraagu2/32/66283_2.png) [@rakeshraagu2](https://discuss.elastic.co/u/rakeshraagu2)
#### Post date: [April 13, 2020, 6:32pm UTC](https://discuss.elastic.co/t/to-collect-logs-from-remote-server/227798/3 "2020-04-13T18:32:09Z")

</div>

Done,

Working now.

I cant see any data stored under my /var/lib/elasticsearch. Where does elasticsearch stores the data collected? Please help

---

<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: [May 11, 2020, 6:32pm UTC](https://discuss.elastic.co/t/to-collect-logs-from-remote-server/227798/4 "2020-05-11T18:32:11Z")

</div>

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