# Ingest data from a relational database - STDOUT Duplicates

**URL:** <https://discuss.elastic.co/t/ingest-data-from-a-relational-database-stdout-duplicates/353984>\
**Category:** Logstash\
**Tags:** jdbc\
**Created:** [February 23, 2024, 12:50pm UTC](https://discuss.elastic.co/t/ingest-data-from-a-relational-database-stdout-duplicates/353984 "2024-02-23T12:50:29Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![MaikLinnemann](https://avatars.discourse-cdn.com/v4/letter/m/8c91f0/32.png) [@MaikLinnemann](https://discuss.elastic.co/u/MaikLinnemann)\
**Post date:** [February 23, 2024, 12:50pm UTC](https://discuss.elastic.co/t/ingest-data-from-a-relational-database-stdout-duplicates/353984/1 "2024-02-23T12:50:29Z")

</div>

Dear all,

when i follow the article to ingest data from a relational database (MSSQL), which is that one: [Klick](https://www.elastic.co/guide/en/cloud/current/ec-getting-started-search-use-cases-db-logstash.html#ec-getting-started-search-use-cases-db-logstash) and i stdout the results to console, i receive duplicates. Exactly i use:

```auto
stdout {
codec => json
}

```

for the output on console.

I just want to know if theres something to prevent duplicates out of the box, like as i understand on files input sincedb is used for....

the matter is that the same output to elasticsearch is not a problem at all, as i assume ES handles the duplicates itself (?).

Any suggestions....

Thanks

---

<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:** [March 22, 2024, 12:50pm UTC](https://discuss.elastic.co/t/ingest-data-from-a-relational-database-stdout-duplicates/353984/2 "2024-03-22T12:50:49Z")

</div>

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