# Logstash, jdbc and .logstash\_jdbc\_last\_run

**URL:** <https://discuss.elastic.co/t/logstash-jdbc-and-logstash-jdbc-last-run/260654>\
**Category:** Logstash\
**Created:** [January 10, 2021, 6:05pm UTC](https://discuss.elastic.co/t/logstash-jdbc-and-logstash-jdbc-last-run/260654 "2021-01-10T18:05:57Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![elasticforme](https://avatars.discourse-cdn.com/v4/letter/e/f05b48/32.png) [@elasticforme](https://discuss.elastic.co/u/elasticforme)\
**Post date:** [January 10, 2021, 6:05pm UTC](https://discuss.elastic.co/t/logstash-jdbc-and-logstash-jdbc-last-run/260654/1 "2021-01-10T18:05:57Z")

</div>

In all my cases I do not want to use .logstash\_jdbc\_last\_run

how do I avoid using it.  
I uses following option but it still try to use .logstash\_jdbc\_last\_run and fails sometime when two or more jdbc trying to use that.

```
clean_run=>true

```

I don't want to use .logstash\_jdbc\_last\_run

---

<div class="post-metadata">

**Author:** ![elasticforme](https://avatars.discourse-cdn.com/v4/letter/e/f05b48/32.png) [@elasticforme](https://discuss.elastic.co/u/elasticforme)\
**Post date:** [January 11, 2021, 6:03pm UTC](https://discuss.elastic.co/t/logstash-jdbc-and-logstash-jdbc-last-run/260654/2 "2021-01-11T18:03:30Z")

</div>

anyone ?

---

<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:** [January 11, 2021, 6:42pm UTC](https://discuss.elastic.co/t/logstash-jdbc-and-logstash-jdbc-last-run/260654/3 "2021-01-11T18:42:43Z")

</div>

> [@elasticforme](#):
>
> In all my cases I do not want to use .logstash\_jdbc\_last\_run

Then set [record\_last\_run](https://www.elastic.co/guide/en/logstash/current/plugins-inputs-jdbc.html#plugins-inputs-jdbc-record_last_run) to false.

If you want to use .logstash\_jdbc\_last\_run in multiple inputs you will need to set last\_run\_metadata\_path to point each input to its own file.

---

<div class="post-metadata">

**Author:** ![elasticforme](https://avatars.discourse-cdn.com/v4/letter/e/f05b48/32.png) [@elasticforme](https://discuss.elastic.co/u/elasticforme)\
**Post date:** [January 11, 2021, 6:56pm UTC](https://discuss.elastic.co/t/logstash-jdbc-and-logstash-jdbc-last-run/260654/4 "2021-01-11T18:56:04Z")

</div>

Perefect. I had 15 pipeline on a system and each was using jdbc. and one or two was failing due to this reason.

Added record\_last\_run=\>false for all and restarted logstash. Everything started up.

---

<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:** [February 8, 2021, 6:56pm UTC](https://discuss.elastic.co/t/logstash-jdbc-and-logstash-jdbc-last-run/260654/5 "2021-02-08T18:56:04Z")

</div>

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