# Logstash input JDBC dupplica dati

**URL:** <https://discuss.elastic.co/t/logstash-input-jdbc-dupplica-dati/208025>\
**Category:** Logstash\
**Created:** [November 15, 2019, 9:29am UTC](https://discuss.elastic.co/t/logstash-input-jdbc-dupplica-dati/208025 "2019-11-15T09:29:32Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![daniele.saccon](https://avatars.discourse-cdn.com/v4/letter/d/4af34b/32.png) [@daniele.saccon](https://discuss.elastic.co/u/daniele.saccon)\
**Post date:** [November 15, 2019, 9:29am UTC](https://discuss.elastic.co/t/logstash-input-jdbc-dupplica-dati/208025/1 "2019-11-15T09:29:32Z")

</div>

Hi everybody

I am using logstash 6.8.1 to import data from a DB and in the file set in **last\_run\_metadata\_path** saves a **wrong ID**.  
This results in a duplication of the rows since the ID saved in the file is less than the largest ID actually imported.

For example: I imported up to ID 1000 but in the file saved 700, the next import re-imports the data from 700 to 1000.

Can you help me solve this behavior?

Thanks

Daniele

---

<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 13, 2019, 9:29am UTC](https://discuss.elastic.co/t/logstash-input-jdbc-dupplica-dati/208025/2 "2019-12-13T09:29:34Z")

</div>

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