# Output elasticsearch of filebeat

**URL:** <https://discuss.elastic.co/t/output-elasticsearch-of-filebeat/304075>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [May 5, 2022, 11:25pm UTC](https://discuss.elastic.co/t/output-elasticsearch-of-filebeat/304075 "2022-05-05T23:25:14Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![zfx](https://avatars.discourse-cdn.com/v4/letter/z/df705f/32.png) [@zfx](https://discuss.elastic.co/u/zfx)\
**Post date:** [May 5, 2022, 11:25pm UTC](https://discuss.elastic.co/t/output-elasticsearch-of-filebeat/304075/1 "2022-05-05T23:25:14Z")

</div>

If I want to use filebeat of metadata fields to instead of es of document id.  
What should i d

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [May 5, 2022, 11:27pm UTC](https://discuss.elastic.co/t/output-elasticsearch-of-filebeat/304075/2 "2022-05-05T23:27:25Z")

</div>

Welcome to our community! 😃

Do you mean you want to define the `_id` when sending an event to Elasticsearch?

---

<div class="post-metadata">

**Author:** ![zfx](https://avatars.discourse-cdn.com/v4/letter/z/df705f/32.png) [@zfx](https://discuss.elastic.co/u/zfx)\
**Post date:** [May 6, 2022, 12:23am UTC](https://discuss.elastic.co/t/output-elasticsearch-of-filebeat/304075/3 "2022-05-06T00:23:25Z")

</div>

yes!

---

<div class="post-metadata">

**Author:** ![zfx](https://avatars.discourse-cdn.com/v4/letter/z/df705f/32.png) [@zfx](https://discuss.elastic.co/u/zfx)\
**Post date:** [May 6, 2022, 12:25am UTC](https://discuss.elastic.co/t/output-elasticsearch-of-filebeat/304075/4 "2022-05-06T00:25:44Z")

</div>

yes!what should i do? 😃 😇

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [May 6, 2022, 5:18am UTC](https://discuss.elastic.co/t/output-elasticsearch-of-filebeat/304075/5 "2022-05-06T05:18:35Z")

</div>

I can't see anything in [Configure the Elasticsearch output | Filebeat Reference [8.2] | Elastic](https://www.elastic.co/guide/en/beats/filebeat/current/elasticsearch-output.html), why do you want to do this?

---

<div class="post-metadata">

**Author:** ![zfx](https://avatars.discourse-cdn.com/v4/letter/z/df705f/32.png) [@zfx](https://discuss.elastic.co/u/zfx)\
**Post date:** [May 6, 2022, 5:42am UTC](https://discuss.elastic.co/t/output-elasticsearch-of-filebeat/304075/6 "2022-05-06T05:42:08Z")

</div>

yes,I want to set document \_id of Elasticsearch by use filebeat.What should I do?

---

<div class="post-metadata">

**Author:** ![zfx](https://avatars.discourse-cdn.com/v4/letter/z/df705f/32.png) [@zfx](https://discuss.elastic.co/u/zfx)\
**Post date:** [May 6, 2022, 5:42am UTC](https://discuss.elastic.co/t/output-elasticsearch-of-filebeat/304075/7 "2022-05-06T05:42:58Z")

</div>

yes,I want to set document \_id of Elasticsearch by use filebeat.What should I do?

---

<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:** [June 3, 2022, 7:43am UTC](https://discuss.elastic.co/t/output-elasticsearch-of-filebeat/304075/8 "2022-06-03T07:43:55Z")

</div>

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