# Using an ingest pipeline from logstash to update a document

**URL:** <https://discuss.elastic.co/t/using-an-ingest-pipeline-from-logstash-to-update-a-document/90075>\
**Category:** Logstash\
**Created:** [June 20, 2017, 10:18am UTC](https://discuss.elastic.co/t/using-an-ingest-pipeline-from-logstash-to-update-a-document/90075 "2017-06-20T10:18:56Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![parosio](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/parosio/32/27367_2.png) [@parosio](https://discuss.elastic.co/u/parosio)\
**Post date:** [June 20, 2017, 10:18am UTC](https://discuss.elastic.co/t/using-an-ingest-pipeline-from-logstash-to-update-a-document/90075/1 "2017-06-20T10:18:56Z")

</div>

Hello,

I'm trying using an ingest pipeline from logstash to grok some fields.

It works correctly with "action =\> "index"", but not when `action => "update" doc_as_upsert => "true"`

Is this the correct way to have the pipeline invoked and the document updated?

---

<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 18, 2017, 10:19am UTC](https://discuss.elastic.co/t/using-an-ingest-pipeline-from-logstash-to-update-a-document/90075/2 "2017-07-18T10:19:38Z")

</div>

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