# Couchdb\_Changes fetch posts multiple times

**URL:** <https://discuss.elastic.co/t/couchdb-changes-fetch-posts-multiple-times/176413>\
**Category:** Logstash\
**Created:** [April 11, 2019, 1:50pm UTC](https://discuss.elastic.co/t/couchdb-changes-fetch-posts-multiple-times/176413 "2019-04-11T13:50:34Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![eebee](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/eebee/32/26799_2.png) [@eebee](https://discuss.elastic.co/u/eebee)\
**Post date:** [April 11, 2019, 1:50pm UTC](https://discuss.elastic.co/t/couchdb-changes-fetch-posts-multiple-times/176413/1 "2019-04-11T13:50:35Z")

</div>

I have connected logstash to a coudant database using the couchdb\_changes input plugin.

Everything works just fine, but after a while, logstash re-fetch some of the posts in the cloudant db. Over and over again causing a faulty data set.

My input-pipeline looks like this right now.

```
input {
 couchdb_changes {
   host => "xxxx-bluemix.cloudant.com"
   db => "xxxxx"
   username => "xxxxxxxxxxxxxxxxxxxxx"
   password => "xxxxxxxxxxx"
   port => "443"
   secure => true
   keep_id => true
   keep_revision => true
   initial_sequence => 0
   sequence_path => "/home/xxxxx/Elastic/logstash/ada-kontroller-generic_counter.conf"
   codec => "json_lines"
   type => "ada-kontroller-generic"
   id => "ada-logging"
 }
}

```

Any ideas of what's causing this?

---

<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 9, 2019, 1:50pm UTC](https://discuss.elastic.co/t/couchdb-changes-fetch-posts-multiple-times/176413/2 "2019-05-09T13:50:41Z")

</div>

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