# Logstash remote file input

**URL:** <https://discuss.elastic.co/t/logstash-remote-file-input/58152>\
**Category:** Logstash\
**Created:** [August 16, 2016, 2:04pm UTC](https://discuss.elastic.co/t/logstash-remote-file-input/58152 "2016-08-16T14:04:48Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nizar\_Khalifa](https://avatars.discourse-cdn.com/v4/letter/n/ed655f/32.png) [@Nizar\_Khalifa](https://discuss.elastic.co/u/Nizar_Khalifa)\
**Post date:** [August 16, 2016, 2:04pm UTC](https://discuss.elastic.co/t/logstash-remote-file-input/58152/1 "2016-08-16T14:04:48Z")

</div>

Hello,

I have a log file in a **Machine1** (/home/log/logfile.log) and a logstash in **Machine2**.  
How can I do to read remote logfile ?  
I tried with :

> input {  
> file {  
> path =\> "IP address/home/log/logfile.log"  
> start\_position =\> "beginning"  
> }  
> }

Is this correct or there are other tools to use ?

Best regards,  
Nizar.

---

<div class="post-metadata">

**Author:** ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)\
**Post date:** [August 16, 2016, 5:08pm UTC](https://discuss.elastic.co/t/logstash-remote-file-input/58152/2 "2016-08-16T17:08:30Z")

</div>

Logstash can only read files in mounted file systems. In this case you'd have to mount the file system containing /home/log/logfile.log from the other machine via e.g. NFS. One normally installs a shipper (like Logstash or Filebeat) on each machine that has logs that should be collected.

---

<div class="post-metadata">

**Author:** ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)\
**Post date:** [January 16, 2017, 3:38pm UTC](https://discuss.elastic.co/t/logstash-remote-file-input/58152/4 "2017-01-16T15:38:51Z")

</div>

> Hope this thread is more related to my query.

No! Please start a _new_ thread (in the Filebeat category) for your questions.

---

<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:** [July 6, 2017, 4:29am UTC](https://discuss.elastic.co/t/logstash-remote-file-input/58152/5 "2017-07-06T04:29:19Z")

</div>


