# Filebeat doesn't automatically send new files

**URL:** <https://discuss.elastic.co/t/filebeat-doesnt-automatically-send-new-files/194390>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [August 8, 2019, 9:42am UTC](https://discuss.elastic.co/t/filebeat-doesnt-automatically-send-new-files/194390 "2019-08-08T09:42:14Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![luc1](https://avatars.discourse-cdn.com/v4/letter/l/e79b87/32.png) [@luc1](https://discuss.elastic.co/u/luc1)\
**Post date:** [August 8, 2019, 9:42am UTC](https://discuss.elastic.co/t/filebeat-doesnt-automatically-send-new-files/194390/1 "2019-08-08T09:42:14Z")

</div>

Hi,

I configured filebeat so that it ships new files coming from a sftp protocol to a repertory "Data", to logstash, and it doesn't. If I modify the file myself (like adding " " at the beginning of the file) once it is in the directory "Data", then it will be send to logstash.

What could be the reason behind this ?

I can provide logs and my filebeat.yml

---

<div class="post-metadata">

**Author:** ![kvch](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kvch/32/72058_2.png) [@kvch](https://discuss.elastic.co/u/kvch)\
**Post date:** [August 8, 2019, 8:04pm UTC](https://discuss.elastic.co/t/filebeat-doesnt-automatically-send-new-files/194390/2 "2019-08-08T20:04:59Z")

</div>

Please provide logs and your configuration formatted using `</>`.

---

<div class="post-metadata">

**Author:** ![luc1](https://avatars.discourse-cdn.com/v4/letter/l/e79b87/32.png) [@luc1](https://discuss.elastic.co/u/luc1)\
**Post date:** [August 9, 2019, 3:35pm UTC](https://discuss.elastic.co/t/filebeat-doesnt-automatically-send-new-files/194390/3 "2019-08-09T15:35:42Z")

</div>

added a new line at the end of my files and now that works

---

<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:** [September 6, 2019, 3:35pm UTC](https://discuss.elastic.co/t/filebeat-doesnt-automatically-send-new-files/194390/4 "2019-09-06T15:35:45Z")

</div>

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