I’ll echo what @riferrei stated. If you have files on a file system(block level access), use FileBeat. It’s going to be easier and more reliable in the long run.
Object stores, like S3 or HDFS, are a bit different as they have different qualities and notification systems.