Filebeat doesn't automatically send new files

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

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

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