# What exactly does sincedb\_path do?

**URL:** <https://discuss.elastic.co/t/what-exactly-does-sincedb-path-do/292504>\
**Category:** Logstash\
**Created:** [December 20, 2021, 8:00pm UTC](https://discuss.elastic.co/t/what-exactly-does-sincedb-path-do/292504 "2021-12-20T20:00:22Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Badger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/badger/32/25190_2.png) [@Badger](https://discuss.elastic.co/u/Badger)\
**Post date:** [December 20, 2021, 8:09pm UTC](https://discuss.elastic.co/t/what-exactly-does-sincedb-path-do/292504/2 "2021-12-20T20:09:50Z")

</div>

The sincedb is an in-memory database that records which files logstash has read and how much of each file it has read, so that if data is appended to the file logstash knows to consume it.

sincedb\_path is used to persist the in-memory database across restarts. That means that if you set sincedb\_path to NUL (on Windows, or /dev/null on UNIX) then when logstash is restarted it thinks every file is new and will re-read it.

---

_[View the full topic](https://discuss.elastic.co/t/what-exactly-does-sincedb-path-do/292504)._
