# Set op\_type to "index" filebeat / elastic-agent

**URL:** <https://discuss.elastic.co/t/set-op-type-to-index-filebeat-elastic-agent/321562>\
**Category:** Elastic Agent\
**Tags:** filebeat\
**Created:** [December 19, 2022, 1:24pm UTC](https://discuss.elastic.co/t/set-op-type-to-index-filebeat-elastic-agent/321562 "2022-12-19T13:24:12Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![stephenb](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/stephenb/32/40856_2.png) [@stephenb](https://discuss.elastic.co/u/stephenb)\
**Post date:** [December 19, 2022, 2:48pm UTC](https://discuss.elastic.co/t/set-op-type-to-index-filebeat-elastic-agent/321562/2 "2022-12-19T14:48:36Z")

</div>

Hi @beijo

See this rather detailed thread.

> [@Filebeat and updating existing docs](https://discuss.elastic.co/t/filebeat-and-updating-existing-docs/320781/13):
>
> Wow I spent a lot of time on this...I have a question into engineering... I have no problem getting the fingerprint to work on the initial index but I can not get it to update the document. I have a suspicion why, but I will wait. I tried everything I know including rarely used configurations I could not get it to work... Apologies about the difficulty I agree Filebeat / Elasticsearch is not working as documented described [here](https://www.elastic.co/guide/en/beats/filebeat/7.17/filebeat-deduplication.html) So in the meantime if you want to set your own \_id and update the…

---

_[View the full topic](https://discuss.elastic.co/t/set-op-type-to-index-filebeat-elastic-agent/321562)._
