# How sincedb works when using read mode for the file input plugin

**URL:** <https://discuss.elastic.co/t/how-sincedb-works-when-using-read-mode-for-the-file-input-plugin/221163>\
**Category:** Logstash\
**Created:** [February 27, 2020, 7:51am UTC](https://discuss.elastic.co/t/how-sincedb-works-when-using-read-mode-for-the-file-input-plugin/221163 "2020-02-27T07:51:16Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![akwoprosper](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/akwoprosper/32/45810_2.png) [@akwoprosper](https://discuss.elastic.co/u/akwoprosper)\
**Post date:** [February 27, 2020, 7:51am UTC](https://discuss.elastic.co/t/how-sincedb-works-when-using-read-mode-for-the-file-input-plugin/221163/1 "2020-02-27T07:51:16Z")

</div>

Hello everyone,

I just want to find out the behavior of the sincedb when using the read mode of the file input plugin.

As a matter of fact, I just want to confirm that the current read position is logged only after a file has been completely read.

Please is there a way of changing this behavior so as to make logstash write to this file at sincedb\_write\_interval seconds.

Thanks in advance

---

<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:** [March 26, 2020, 7:51am UTC](https://discuss.elastic.co/t/how-sincedb-works-when-using-read-mode-for-the-file-input-plugin/221163/2 "2020-03-26T07:51:24Z")

</div>

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