# Update data in Elastic with Filebeats

**URL:** <https://discuss.elastic.co/t/update-data-in-elastic-with-filebeats/308019>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [June 23, 2022, 1:48pm UTC](https://discuss.elastic.co/t/update-data-in-elastic-with-filebeats/308019 "2022-06-23T13:48:45Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Worlock](https://avatars.discourse-cdn.com/v4/letter/w/c77e96/32.png) [@Worlock](https://discuss.elastic.co/u/Worlock)\
**Post date:** [June 23, 2022, 1:48pm UTC](https://discuss.elastic.co/t/update-data-in-elastic-with-filebeats/308019/1 "2022-06-23T13:48:45Z")

</div>

I have some data from our Monitoring tool that is uploaded to Elastic with Filebeats. When the monitoring alert is closed, I get a new entry with "Resolution state: Closed" I would like to update the Resolution state in Elastic, instead of creating an new (double) entry, with only one field changed.

[In this topic](https://discuss.elastic.co/t/filebeat-and-updating-documents/167355) I found some information about that. I have to make sure that I have a unique ID that I can use to relate the 2 entries.

So with the help of this forum, I managed to change the Document Id, by adding this to the filebeat.yml

```auto
filebeat.inputs:
  parsers:
    - ndjson:
        document_id: "AlertId"

```

I can verify that the Document Id now is correct, and not generated by Elastic anymore. But when I have a closed alert, nothing seems to happen. So it doesn't get uploaded twice anymore, but it's also not updating.

Any help with figuring this problem out would be appreciated! I have no clue anymore.

---

<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 21, 2022, 3:48pm UTC](https://discuss.elastic.co/t/update-data-in-elastic-with-filebeats/308019/2 "2022-07-21T15:48:56Z")

</div>

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