# How to generate PATCH requests using the AppSearch output plugin?

**URL:** <https://discuss.elastic.co/t/how-to-generate-patch-requests-using-the-appsearch-output-plugin/229784>\
**Category:** Logstash\
**Created:** [April 25, 2020, 7:28pm UTC](https://discuss.elastic.co/t/how-to-generate-patch-requests-using-the-appsearch-output-plugin/229784 "2020-04-25T19:28:22Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![gpribi](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/gpribi/32/65066_2.png) [@gpribi](https://discuss.elastic.co/u/gpribi)\
**Post date:** [April 25, 2020, 7:28pm UTC](https://discuss.elastic.co/t/how-to-generate-patch-requests-using-the-appsearch-output-plugin/229784/1 "2020-04-25T19:28:22Z")

</div>

Hello, I'm using AppSearch and need to frequently update a single dynamic field in every document. All the other fields are created once and don't change.

I'm using the odbc input connected to a mysql database, and appsearch output plugin to make the initial load.

The appsearch API logs show that all the logstash requests are PUSH. If I make a PUSH request including just the ID and the dynamic field, all the other static fields become blank.

The appsearch API documentation suggests the PATCH operation to update specific fields. That's excatly what I need, but i can't find how to make those requests from logstash.

Since I have about 150k documents and 10 static fields, making a PUSH including also the 10 static fields won't be efficient.

A workaround would be to make my own client, but I preffer staying with logstash

Thank you in advance  
Gabriel

---

<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 23, 2020, 7:28pm UTC](https://discuss.elastic.co/t/how-to-generate-patch-requests-using-the-appsearch-output-plugin/229784/2 "2020-05-23T19:28:40Z")

</div>

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