# Couchdb changes, looses sync after long period of inactivity

**URL:** <https://discuss.elastic.co/t/couchdb-changes-looses-sync-after-long-period-of-inactivity/70907>\
**Category:** Logstash\
**Created:** [January 8, 2017, 11:55pm UTC](https://discuss.elastic.co/t/couchdb-changes-looses-sync-after-long-period-of-inactivity/70907 "2017-01-08T23:55:52Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![teebu](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/teebu/32/10119_2.png) [@teebu](https://discuss.elastic.co/u/teebu)\
**Post date:** [January 8, 2017, 11:55pm UTC](https://discuss.elastic.co/t/couchdb-changes-looses-sync-after-long-period-of-inactivity/70907/1 "2017-01-08T23:55:52Z")

</div>

I cant tell what is happening, but I have many couchdb inputs, and they have different frequency of changes.

It seems to me that if an index doesnt get \_changes after a long period of time (many hours, 1h+), that particular input will stop updating, forcing me to restart logstash. The other inputs that are constantly getting \_changes never have this issue, even in the same logstash instance.

Does the couchdb plugin need some kind of a keep-alive setting?

Has anyone experienced this? I am using LS1.5.

My current solution is to restart logstash hourly.

I am using, cloudant as my couchdb provider.

```auto
input {
  couchdb_changes {
    db => "dbname"
    host => "cloudant.com"
    sequence_path => "seq/path"
    type => "docType"
    port => 443
    secure => true
    username => ""
    password => ""
  }
}

```

I know the default heartbeat should be keeping this thing active, but it doesnt seem like it.

Could the issue be the concurrent connections?

---

<div class="post-metadata">

**Author:** ![teebu](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/teebu/32/10119_2.png) [@teebu](https://discuss.elastic.co/u/teebu)\
**Post date:** [January 9, 2017, 8:00pm UTC](https://discuss.elastic.co/t/couchdb-changes-looses-sync-after-long-period-of-inactivity/70907/2 "2017-01-09T20:00:48Z")

</div>

I wonder if this is a related issue: [Logstash Lumberjack Input Stops Processing](https://discuss.elastic.co/t/logstash-lumberjack-input-stops-processing/1031/6)

---

<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 6, 2017, 8:01pm UTC](https://discuss.elastic.co/t/couchdb-changes-looses-sync-after-long-period-of-inactivity/70907/3 "2017-02-06T20:01:10Z")

</div>

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