# Sincedb\_clean\_after not working in logstash plugin

**URL:** <https://discuss.elastic.co/t/sincedb-clean-after-not-working-in-logstash-plugin/225411>\
**Category:** Logstash\
**Created:** [March 27, 2020, 1:05pm UTC](https://discuss.elastic.co/t/sincedb-clean-after-not-working-in-logstash-plugin/225411 "2020-03-27T13:05:04Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mohsin\_Alam](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mohsin_alam/32/65201_2.png) [@Mohsin\_Alam](https://discuss.elastic.co/u/Mohsin_Alam)\
**Post date:** [March 27, 2020, 1:05pm UTC](https://discuss.elastic.co/t/sincedb-clean-after-not-working-in-logstash-plugin/225411/1 "2020-03-27T13:05:05Z")

</div>

This is my config. file for logstash file input plugin:  
file  
{  
id =\> "my\_plugin\_id"  
type =\> "log"  
path =\> "/uploads/_/_.log"  
mode =\> "read"  
start\_position =\> beginning  
sincedb\_clean\_after =\> "10 seconds"  
codec =\> multiline

i tried using sincedb\_clean\_after option it won't work for me.  
i am trying to re-parse old log which i had already parsed and i understand that logstash creates a db to maintain the file position of the logs and default expire is 14 days. i am trying to reduce is so that i can re-parse log files again but i am unable to do so. Whenever i restart logstash it takes the log irrespective of the scenario if it has been parsed earlier and sincedb\_clean\_after doesn't seem to work for me. i am using logstash 7.6.1 , please help me with the same. thanks.

---

<div class="post-metadata">

**Author:** ![Mohsin\_Alam](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mohsin_alam/32/65201_2.png) [@Mohsin\_Alam](https://discuss.elastic.co/u/Mohsin_Alam)\
**Post date:** [April 21, 2020, 4:39pm UTC](https://discuss.elastic.co/t/sincedb-clean-after-not-working-in-logstash-plugin/225411/2 "2020-04-21T16:39:32Z")

</div>

can i get any update on this please?

---

<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:** [May 19, 2020, 4:39pm UTC](https://discuss.elastic.co/t/sincedb-clean-after-not-working-in-logstash-plugin/225411/3 "2020-05-19T16:39:44Z")

</div>

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