# Filebeat reads file too fast

**URL:** <https://discuss.elastic.co/t/filebeat-reads-file-too-fast/199574>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [September 16, 2019, 5:21am UTC](https://discuss.elastic.co/t/filebeat-reads-file-too-fast/199574 "2019-09-16T05:21:30Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![msk\_76](https://avatars.discourse-cdn.com/v4/letter/m/dbc845/32.png) [@msk\_76](https://discuss.elastic.co/u/msk_76)\
**Post date:** [September 16, 2019, 5:21am UTC](https://discuss.elastic.co/t/filebeat-reads-file-too-fast/199574/1 "2019-09-16T05:21:30Z")

</div>

I have a problem with filebeat that it reads the file while the file is being overwritten by another process. This problem result in loading/reading some junk entries by Filebeat.  
My current configuration is :  
filebeat.inputs:

- type: log  
enabled: true  
paths:

filebeat.config.modules:  
path: ${path.config}/modules.d/\*.yml

reload.enabled: false

setup.template.name: "sys\_username\_mapping"  
setup.template.pattern: "sys\_username\_map\*"

json.overwrite\_keys: true

output.logstash:  
hosts: ["10.129.212.45:5043"]

logging.level: info

Here same file "filetoload" is getting updated(overwritten) once per day at 1:00 PM and the path is on NFS. So I want that filebeat should read/load the file only if it is not being overwritten by any other process  
Please suggest

---

<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 14, 2019, 5:26am UTC](https://discuss.elastic.co/t/filebeat-reads-file-too-fast/199574/2 "2019-10-14T05:26:10Z")

</div>

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