# Filebeat to read Log files from sFTP?

**URL:** <https://discuss.elastic.co/t/filebeat-to-read-log-files-from-sftp/150219>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [September 27, 2018, 3:22pm UTC](https://discuss.elastic.co/t/filebeat-to-read-log-files-from-sftp/150219 "2018-09-27T15:22:05Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![ratman](https://avatars.discourse-cdn.com/v4/letter/r/3be4f8/32.png) [@ratman](https://discuss.elastic.co/u/ratman)\
**Post date:** [September 27, 2018, 3:22pm UTC](https://discuss.elastic.co/t/filebeat-to-read-log-files-from-sftp/150219/1 "2018-09-27T15:22:05Z")

</div>

Hello!  
I have some \*.log files located at a server I can access via sFTP. So far, I am bringing them to my Elastic machine manually but I'd like to automatise the process.  
Is there a way to set Filebeat to rretrieve al the files from a folder located in a sFTP server?

Thanks in advance!!!

---

<div class="post-metadata">

**Author:** ![pierhugues](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/pierhugues/32/48383_2.png) [@pierhugues](https://discuss.elastic.co/u/pierhugues)\
**Post date:** [September 28, 2018, 1:18pm UTC](https://discuss.elastic.co/t/filebeat-to-read-log-files-from-sftp/150219/2 "2018-09-28T13:18:53Z")

</div>

Hello @ratman,

Filebeat doesn't support connecting to remote servers,

We support local logs, TCP/UDP or connection from a syslog server, depending on your infra sFTP might be an OK solution you might also want to look at rsync via ssh.

---

<div class="post-metadata">

**Author:** ![ratman](https://avatars.discourse-cdn.com/v4/letter/r/3be4f8/32.png) [@ratman](https://discuss.elastic.co/u/ratman)\
**Post date:** [September 28, 2018, 9:30pm UTC](https://discuss.elastic.co/t/filebeat-to-read-log-files-from-sftp/150219/3 "2018-09-28T21:30:21Z")

</div>

Thanks for the answer @pierhugues , since my purpose is to send the data to a Elasticsearch hosted on Elastic Cloud, I guess the easiest will be to use a script to fetch the logs from the original server and then move them to my virtual machine to send them via Filebeat - Logstash to the EC.  
But I'll check on the rsync! Thanks again

---

<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, 2018, 9:30pm UTC](https://discuss.elastic.co/t/filebeat-to-read-log-files-from-sftp/150219/4 "2018-10-26T21:30:23Z")

</div>

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