# Elasticsearch update api from custom made Beat

**URL:** <https://discuss.elastic.co/t/elasticsearch-update-api-from-custom-made-beat/161111>\
**Category:** Beats\
**Created:** [December 17, 2018, 10:16am UTC](https://discuss.elastic.co/t/elasticsearch-update-api-from-custom-made-beat/161111 "2018-12-17T10:16:08Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![rcartier](https://avatars.discourse-cdn.com/v4/letter/r/cc9497/32.png) [@rcartier](https://discuss.elastic.co/u/rcartier)\
**Post date:** [December 17, 2018, 10:16am UTC](https://discuss.elastic.co/t/elasticsearch-update-api-from-custom-made-beat/161111/1 "2018-12-17T10:16:08Z")

</div>

I'm trying to use the ES update API from my custom made Beat.

Here is what I'm trying to reproduce in my Beat implementation:

```
POST test/_doc/1/_update
{
   "doc" : {
        "name" : "new_name"
    }
}

```

I saw there is a **client** structure created in the beat source code, with an **eventType: "\_doc"** attribute. But I couldn't manage to modify the client to use the update API.

I'm not sure whether it's possible or not. Does someone has the answer ?

---

<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 14, 2019, 12:16pm UTC](https://discuss.elastic.co/t/elasticsearch-update-api-from-custom-made-beat/161111/2 "2019-01-14T12:16:08Z")

</div>

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