# Sincedb\_path file type

**URL:** <https://discuss.elastic.co/t/sincedb-path-file-type/300182>\
**Category:** Logstash\
**Created:** [March 21, 2022, 9:53am UTC](https://discuss.elastic.co/t/sincedb-path-file-type/300182 "2022-03-21T09:53:01Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Greninja\_San](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/greninja_san/32/96119_2.png) [@Greninja\_San](https://discuss.elastic.co/u/Greninja_San)\
**Post date:** [March 21, 2022, 9:53am UTC](https://discuss.elastic.co/t/sincedb-path-file-type/300182/1 "2022-03-21T09:53:01Z")

</div>

Hello!

I have to set a sincedb\_path file for logstash.

However, I have to create one and I cannot find the file type required. What should it be? (CSV, TXT, JSON...)

Thank you 🙂

---

<div class="post-metadata">

**Author:** ![ylasri](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ylasri/32/86120_2.png) [@ylasri](https://discuss.elastic.co/u/ylasri)\
**Post date:** [March 21, 2022, 9:56am UTC](https://discuss.elastic.co/t/sincedb-path-file-type/300182/2 "2022-03-21T09:56:33Z")

</div>

No need to create it, Logstash will create it  
Just set the path to where you wish to persist it  
Every time logstash input process a file, it will update the sincedb file to keep tracking processed files

---

<div class="post-metadata">

**Author:** ![Greninja\_San](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/greninja_san/32/96119_2.png) [@Greninja\_San](https://discuss.elastic.co/u/Greninja_San)\
**Post date:** [March 21, 2022, 9:57am UTC](https://discuss.elastic.co/t/sincedb-path-file-type/300182/3 "2022-03-21T09:57:52Z")

</div>

The problem is, I just set a path... and logstash logs tell me that:

"The "sincedb\_path" argument must point to a file, received a directory"

---

<div class="post-metadata">

**Author:** ![ylasri](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ylasri/32/86120_2.png) [@ylasri](https://discuss.elastic.co/u/ylasri)\
**Post date:** [March 21, 2022, 10:05am UTC](https://discuss.elastic.co/t/sincedb-path-file-type/300182/4 "2022-03-21T10:05:50Z")

</div>

Yes, the path is the absolute path to the file name, example `/opt/sincedb/file_tracking.txt`  
Then it's logstash that will create the file `file_tracking.txt`

---

<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:** [April 18, 2022, 10:05am UTC](https://discuss.elastic.co/t/sincedb-path-file-type/300182/5 "2022-04-18T10:05:53Z")

</div>

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