# 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:** 1\
**Showing post:** 2

<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.

---

_[View the full topic](https://discuss.elastic.co/t/how-to-read-log-files-from-remote-location/293746)._
