# Couchdb\_changes index only doc field from event

**URL:** <https://discuss.elastic.co/t/couchdb-changes-index-only-doc-field-from-event/39223>\
**Category:** Logstash\
**Created:** [January 14, 2016, 11:09am UTC](https://discuss.elastic.co/t/couchdb-changes-index-only-doc-field-from-event/39223 "2016-01-14T11:09:31Z")\
**Posts on this page:** 13\
**Page:** 2

<div class="post-metadata">

**Author:** ![theuntergeek](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/theuntergeek/32/44961_2.png) [@theuntergeek](https://discuss.elastic.co/u/theuntergeek)\
**Post date:** [January 15, 2016, 9:11pm UTC](https://discuss.elastic.co/t/couchdb-changes-index-only-doc-field-from-event/39223/21 "2016-01-15T21:11:14Z")

</div>

The reason I say regression is because there have been no changes to couchdb\_changes plugin since 1.5.x, and there have been _many_ changes to the elasticsearch plugin since then. It all worked quite well in 1.5.x. I'm just sayin'...

---

<div class="post-metadata">

**Author:** ![\_alexey\_](https://avatars.discourse-cdn.com/v4/letter/_/2acd7d/32.png) [@\_alexey\_](https://discuss.elastic.co/u/_alexey_)\
**Post date:** [January 16, 2016, 5:50am UTC](https://discuss.elastic.co/t/couchdb-changes-index-only-doc-field-from-event/39223/22 "2016-01-16T05:50:06Z")

</div>

What do you think about my proposal?

---

<div class="post-metadata">

**Author:** ![\_alexey\_](https://avatars.discourse-cdn.com/v4/letter/_/2acd7d/32.png) [@\_alexey\_](https://discuss.elastic.co/u/_alexey_)\
**Post date:** [January 18, 2016, 2:06pm UTC](https://discuss.elastic.co/t/couchdb-changes-index-only-doc-field-from-event/39223/23 "2016-01-18T14:06:01Z")

</div>

@theuntergeek ?

---

<div class="post-metadata">

**Author:** ![theuntergeek](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/theuntergeek/32/44961_2.png) [@theuntergeek](https://discuss.elastic.co/u/theuntergeek)\
**Post date:** [January 19, 2016, 6:43pm UTC](https://discuss.elastic.co/t/couchdb-changes-index-only-doc-field-from-event/39223/24 "2016-01-19T18:43:35Z")

</div>

Sorry, I'm swamped. I'll do some tests and update when I can.

---

<div class="post-metadata">

**Author:** ![\_alexey\_](https://avatars.discourse-cdn.com/v4/letter/_/2acd7d/32.png) [@\_alexey\_](https://discuss.elastic.co/u/_alexey_)\
**Post date:** [January 25, 2016, 2:42pm UTC](https://discuss.elastic.co/t/couchdb-changes-index-only-doc-field-from-event/39223/25 "2016-01-25T14:42:30Z")

</div>

Any news regarding this issue?

---

<div class="post-metadata">

**Author:** ![chrishb](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/chrishb/32/6106_2.png) [@chrishb](https://discuss.elastic.co/u/chrishb)\
**Post date:** [January 26, 2016, 2:09pm UTC](https://discuss.elastic.co/t/couchdb-changes-index-only-doc-field-from-event/39223/26 "2016-01-26T14:09:45Z")

</div>

Bump.

---

<div class="post-metadata">

**Author:** ![theuntergeek](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/theuntergeek/32/44961_2.png) [@theuntergeek](https://discuss.elastic.co/u/theuntergeek)\
**Post date:** [January 27, 2016, 12:01am UTC](https://discuss.elastic.co/t/couchdb-changes-index-only-doc-field-from-event/39223/27 "2016-01-27T00:01:51Z")

</div>

It is not forgotten. Please be patient with us. We're a small team.

---

<div class="post-metadata">

**Author:** ![\_alexey\_](https://avatars.discourse-cdn.com/v4/letter/_/2acd7d/32.png) [@\_alexey\_](https://discuss.elastic.co/u/_alexey_)\
**Post date:** [February 5, 2016, 5:55am UTC](https://discuss.elastic.co/t/couchdb-changes-index-only-doc-field-from-event/39223/28 "2016-02-05T05:55:23Z")

</div>

Bump!

---

<div class="post-metadata">

**Author:** ![theuntergeek](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/theuntergeek/32/44961_2.png) [@theuntergeek](https://discuss.elastic.co/u/theuntergeek)\
**Post date:** [February 9, 2016, 10:56pm UTC](https://discuss.elastic.co/t/couchdb-changes-index-only-doc-field-from-event/39223/29 "2016-02-09T22:56:26Z")

</div>

After some internal discussion, we're going to update the Elasticsearch output plugin in two ways.

1. "Alternate root" will allow the elasticsearch output plugin to have a particular sub-object as the new root level of the document to be sent. This will address cases like the current couchdb\_changes plugin where a field, such as the `doc` field, was being used with `doc_as_upsert` to avoid including the Logstash metadata fields.

2. "Strip the Logstash metadata" (don't know what flag/option name this will be yet). This will remove the `@timestamp` and `@version` fields from an outbound event so that Elasticsearch will not have those fields. This allows the couchdb\_changes plugin code (or any other plugin) to send raw data instead of having to use a dedicated field.

---

<div class="post-metadata">

**Author:** ![\_alexey\_](https://avatars.discourse-cdn.com/v4/letter/_/2acd7d/32.png) [@\_alexey\_](https://discuss.elastic.co/u/_alexey_)\
**Post date:** [February 10, 2016, 5:53am UTC](https://discuss.elastic.co/t/couchdb-changes-index-only-doc-field-from-event/39223/30 "2016-02-10T05:53:15Z")

</div>

Related issue on github [https://github.com/logstash-plugins/logstash-output-elasticsearch/issues/356](https://github.com/logstash-plugins/logstash-output-elasticsearch/issues/356)

---

<div class="post-metadata">

**Author:** ![\_alexey\_](https://avatars.discourse-cdn.com/v4/letter/_/2acd7d/32.png) [@\_alexey\_](https://discuss.elastic.co/u/_alexey_)\
**Post date:** [March 1, 2016, 1:07pm UTC](https://discuss.elastic.co/t/couchdb-changes-index-only-doc-field-from-event/39223/31 "2016-03-01T13:07:52Z")

</div>

stil open issue

---

<div class="post-metadata">

**Author:** ![naqerf](https://avatars.discourse-cdn.com/v4/letter/n/45deac/32.png) [@naqerf](https://discuss.elastic.co/u/naqerf)\
**Post date:** [July 9, 2016, 6:41pm UTC](https://discuss.elastic.co/t/couchdb-changes-index-only-doc-field-from-event/39223/32 "2016-07-09T18:41:14Z")

</div>

Hi!

Is there any solution/workaround to this issue? My team and I are looking forward to migrate from the deprecated rivers but all our queries expect the CouchDB document in the root, having the contents nested under "doc:{}" is a stopper. Can we help to get this fixed?

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:** [July 6, 2017, 4:48am UTC](https://discuss.elastic.co/t/couchdb-changes-index-only-doc-field-from-event/39223/33 "2017-07-06T04:48:47Z")

</div>

Closed on July 6, 2017, 4:48am UTC



[Previous page](https://discuss.elastic.co/t/couchdb-changes-index-only-doc-field-from-event/39223.md?page=1)
