# Logstash 6.8.4 and 6.8.5 jdbc input plugin erasing last\_run\_metadata

**URL:** <https://discuss.elastic.co/t/logstash-6-8-4-and-6-8-5-jdbc-input-plugin-erasing-last-run-metadata/209096>\
**Category:** Logstash\
**Created:** [November 22, 2019, 4:42pm UTC](https://discuss.elastic.co/t/logstash-6-8-4-and-6-8-5-jdbc-input-plugin-erasing-last-run-metadata/209096 "2019-11-22T16:42:30Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![lpkirby](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/lpkirby/32/58173_2.png) [@lpkirby](https://discuss.elastic.co/u/lpkirby)\
**Post date:** [November 22, 2019, 4:42pm UTC](https://discuss.elastic.co/t/logstash-6-8-4-and-6-8-5-jdbc-input-plugin-erasing-last-run-metadata/209096/1 "2019-11-22T16:42:31Z")

</div>

Starting in Logstash 6.8.4 and still present in logstash 6.8.5...

Whenever I start or restart logstash all of the files defined in all the jdbc input last\_run\_metadata\_path settings are erased. This causes all my queries going to elasticsearch to start over.

I've tried not explicitly setting clean\_run and explicitly setting clean\_run =\> false.

Without changing any config files and downgrading back to 6.8.3 the problem goes away.

I've looked at the code for the jdbc input plugin and it seems to only erase the last run files when clean\_run is set to true, but maybe I missed something.

Did I miss a new setting in logstash 6.8.4+ ?

Thank You.

---

<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:** [December 20, 2019, 4:42pm UTC](https://discuss.elastic.co/t/logstash-6-8-4-and-6-8-5-jdbc-input-plugin-erasing-last-run-metadata/209096/2 "2019-12-20T16:42:43Z")

</div>

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