# Pipeline not working with logstash-output-elasticsearch plugin when using doc\_as\_upsert =\> true

**URL:** <https://discuss.elastic.co/t/pipeline-not-working-with-logstash-output-elasticsearch-plugin-when-using-doc-as-upsert-true/111430>\
**Category:** Logstash\
**Created:** [December 12, 2017, 8:13pm UTC](https://discuss.elastic.co/t/pipeline-not-working-with-logstash-output-elasticsearch-plugin-when-using-doc-as-upsert-true/111430 "2017-12-12T20:13:18Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dineshs91](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dineshs91/32/25437_2.png) [@Dineshs91](https://discuss.elastic.co/u/Dineshs91)\
**Post date:** [December 12, 2017, 8:13pm UTC](https://discuss.elastic.co/t/pipeline-not-working-with-logstash-output-elasticsearch-plugin-when-using-doc-as-upsert-true/111430/1 "2017-12-12T20:13:18Z")

</div>

Pipeline has no effect while using `action => update` and `doc_as_upsert => true`.  
When I change the action to `index`, it works.

Here is my logstash configuration (`output` section)

```auto
output {
  elasticsearch {
     action => update
     doc_as_upsert => true
     pipeline => "log_pipeline"
     hosts => ["localhost:9200"]
 }
}

```

Does `action => index` and `doc_as_upsert => true` work together ?  
From documentation I understand that upsert is a special case when using `action => index`

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:** [January 9, 2018, 8:13pm UTC](https://discuss.elastic.co/t/pipeline-not-working-with-logstash-output-elasticsearch-plugin-when-using-doc-as-upsert-true/111430/2 "2018-01-09T20:13:44Z")

</div>

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