# How to read log files from remote location

**URL:** <https://discuss.elastic.co/t/how-to-read-log-files-from-remote-location/293746>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [January 7, 2022, 1:21pm UTC](https://discuss.elastic.co/t/how-to-read-log-files-from-remote-location/293746 "2022-01-07T13:21:39Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Aamir\_Sheraz](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/aamir_sheraz/32/99981_2.png) [@Aamir\_Sheraz](https://discuss.elastic.co/u/Aamir_Sheraz)\
**Post date:** [January 7, 2022, 1:21pm UTC](https://discuss.elastic.co/t/how-to-read-log-files-from-remote-location/293746/1 "2022-01-07T13:21:39Z")

</div>

I want to read log files from different location/systems.  
I am able to read multiple files on the same system but there is requirement to read files from another location/system remotely as well without installing filebeat on the second location.  
How can I achieve this ?

---

<div class="post-metadata">

**Author:** ![hocho](https://avatars.discourse-cdn.com/v4/letter/h/8e7dd6/32.png) [@hocho](https://discuss.elastic.co/u/hocho)\
**Post date:** [January 7, 2022, 1:58pm UTC](https://discuss.elastic.co/t/how-to-read-log-files-from-remote-location/293746/2 "2022-01-07T13:58:43Z")

</div>

It depends on the operating system and where the files are stored.

If you are running Linux you could use a NFS and mount the remote file system where the Filebeat is installed. Just make sure that you configure NFS correctly and according to your requirements, e.g. if you want to use soft or hard mount (hard could hang the server) and Synchronous vs asynchronous, permissions etc but it still requires configuration on both sides.

If you are storing the files on a Windows share I believe it is possible to read the files with a Filebeat but it is probably not supported nor recommended and there are some other additional risks, see thread below.

> **[Can’t read log files from network volumes | Filebeat Reference \[8.11\] | Elastic](https://www.elastic.co/guide/en/beats/filebeat/current/filebeat-network-volumes.html)**

> [@FIlebeat from a Windows Network Share](https://discuss.elastic.co/t/filebeat-from-a-windows-network-share/36966/6):
>
> in paths you might consider using \\winserver\logs\single\*.log, such that after file rotation the rotated content will be send until file end (in case filebeat didn't process complete file yet). After file rotation the new 'single.log' should have a new file id and new file should be picked up. Is your application using some logging library, e.g. log4net? Is file really renamed or copied? I don't see anything of interest in logs confused . Maybe run with "-v -e -d '\*'" ? I'm basically missi…

If you can upload the files to a Database you could use Logstash plugin to query the DB.

In any case you must expose the files somehow to the remote server which most likely require configuration on both ends.

This is my experince with this type of problem.

---

<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:** [February 4, 2022, 3:59pm UTC](https://discuss.elastic.co/t/how-to-read-log-files-from-remote-location/293746/3 "2022-02-04T15:59:24Z")

</div>

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