# Excuse me, how does filebeat add custom fields, random uuid?

**URL:** <https://discuss.elastic.co/t/excuse-me-how-does-filebeat-add-custom-fields-random-uuid/161722>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [December 20, 2018, 3:46pm UTC](https://discuss.elastic.co/t/excuse-me-how-does-filebeat-add-custom-fields-random-uuid/161722 "2018-12-20T15:46:05Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![xuyangxy](https://avatars.discourse-cdn.com/v4/letter/x/90db22/32.png) [@xuyangxy](https://discuss.elastic.co/u/xuyangxy)\
**Post date:** [December 20, 2018, 3:46pm UTC](https://discuss.elastic.co/t/excuse-me-how-does-filebeat-add-custom-fields-random-uuid/161722/1 "2018-12-20T15:46:05Z")

</div>

Excuse me, how does filebeat add custom fields, random uuid?

![image](https://us1.discourse-cdn.com/elastic/original/3X/3/5/354de152966d413f67204471b17272a4352205f1.png)

---

<div class="post-metadata">

**Author:** ![jsoriano](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jsoriano/32/27920_2.png) [@jsoriano](https://discuss.elastic.co/u/jsoriano)\
**Post date:** [December 20, 2018, 5:01pm UTC](https://discuss.elastic.co/t/excuse-me-how-does-filebeat-add-custom-fields-random-uuid/161722/2 "2018-12-20T17:01:52Z")

</div>

Hi @xuyangxy and welcome 🙂

I am sorry but this is not possible at the moment. There is an enhancement request open for this: [https://github.com/elastic/beats/issues/1492](https://github.com/elastic/beats/issues/1492)

---

<div class="post-metadata">

**Author:** ![xuyangxy](https://avatars.discourse-cdn.com/v4/letter/x/90db22/32.png) [@xuyangxy](https://discuss.elastic.co/u/xuyangxy)\
**Post date:** [December 21, 2018, 2:00am UTC](https://discuss.elastic.co/t/excuse-me-how-does-filebeat-add-custom-fields-random-uuid/161722/3 "2018-12-21T02:00:03Z")

</div>

@jsoriano Thanks, currently I want to go from filebeat --\> kafka. After reading your[github issue](https://github.com/elastic/beats/issues/1492), I still don't quite understand how to add a \_id parameter?

---

<div class="post-metadata">

**Author:** ![jsoriano](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jsoriano/32/27920_2.png) [@jsoriano](https://discuss.elastic.co/u/jsoriano)\
**Post date:** [December 21, 2018, 9:04am UTC](https://discuss.elastic.co/t/excuse-me-how-does-filebeat-add-custom-fields-random-uuid/161722/4 "2018-12-21T09:04:51Z")

</div>

Yes, as I said it is not possible at the moment to add a unique id to events from Beats, the issue is a request for this, but is still open.

---

<div class="post-metadata">

**Author:** ![xuyangxy](https://avatars.discourse-cdn.com/v4/letter/x/90db22/32.png) [@xuyangxy](https://discuss.elastic.co/u/xuyangxy)\
**Post date:** [December 21, 2018, 9:21am UTC](https://discuss.elastic.co/t/excuse-me-how-does-filebeat-add-custom-fields-random-uuid/161722/5 "2018-12-21T09:21:34Z")

</div>

@jsoriano Ok, I know, thank you very much. Is there any alternative solution?

---

<div class="post-metadata">

**Author:** ![jsoriano](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jsoriano/32/27920_2.png) [@jsoriano](https://discuss.elastic.co/u/jsoriano)\
**Post date:** [December 21, 2018, 10:08am UTC](https://discuss.elastic.co/t/excuse-me-how-does-filebeat-add-custom-fields-random-uuid/161722/6 "2018-12-21T10:08:48Z")

</div>

No, I am sorry, there is no workaround at the moment ☹

---

<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 18, 2019, 10:08am UTC](https://discuss.elastic.co/t/excuse-me-how-does-filebeat-add-custom-fields-random-uuid/161722/7 "2019-01-18T10:08:49Z")

</div>

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