# Filebeat latency while reading the data

**URL:** <https://discuss.elastic.co/t/filebeat-latency-while-reading-the-data/279869>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [July 28, 2021, 2:05pm UTC](https://discuss.elastic.co/t/filebeat-latency-while-reading-the-data/279869 "2021-07-28T14:05:15Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![anjilinga](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/anjilinga/32/86010_2.png) [@anjilinga](https://discuss.elastic.co/u/anjilinga)\
**Post date:** [July 28, 2021, 2:05pm UTC](https://discuss.elastic.co/t/filebeat-latency-while-reading-the-data/279869/1 "2021-07-28T14:05:15Z")

</div>

Hi Team,

in filebeat i have given the input section with filepath and outputsection with kafka.  
while reading the data from file filebeat is reading in batchwise. I have not given any flush timeout, as a default it should take 1s, but it is reading different time intevels, I have attched the screenshot with record write time(Time) to the file and filebeat time (@timestamp). the latency is around 10 seconds

 ![timediff](https://us1.discourse-cdn.com/elastic/original/3X/9/d/9de145e294d093231422e882f653161760dbdfeb.png)

Can you please suggest, need any additional configuration to reduce the latency.  
Regards,  
Anji

---

<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:** [August 25, 2021, 4:05pm UTC](https://discuss.elastic.co/t/filebeat-latency-while-reading-the-data/279869/2 "2021-08-25T16:05:16Z")

</div>

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