# How can i pass a extra field

**URL:** <https://discuss.elastic.co/t/how-can-i-pass-a-extra-field/139870>\
**Category:** Beats\
**Created:** [July 13, 2018, 4:56am UTC](https://discuss.elastic.co/t/how-can-i-pass-a-extra-field/139870 "2018-07-13T04:56:16Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Chiranjeevi\_Medichar](https://avatars.discourse-cdn.com/v4/letter/c/ecd19e/32.png) [@Chiranjeevi\_Medichar](https://discuss.elastic.co/u/Chiranjeevi_Medichar)\
**Post date:** [July 13, 2018, 4:56am UTC](https://discuss.elastic.co/t/how-can-i-pass-a-extra-field/139870/1 "2018-07-13T04:56:16Z")

</div>

can i pass a extra field in filebeat not only a message

---

<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:** [July 13, 2018, 10:02am UTC](https://discuss.elastic.co/t/how-can-i-pass-a-extra-field/139870/2 "2018-07-13T10:02:38Z")

</div>

Hi @Chiranjeevi_Medichar,

You can use the [`fields`](https://www.elastic.co/guide/en/beats/filebeat/6.3/configuration-general-options.html#libbeat-configuration-fields) setting to add custom fields to all your events, as in this example from the documentation:

```auto
fields: {project: "myproject", instance-id: "574734885120952459"}

```

---

<div class="post-metadata">

**Author:** ![Chiranjeevi\_Medichar](https://avatars.discourse-cdn.com/v4/letter/c/ecd19e/32.png) [@Chiranjeevi\_Medichar](https://discuss.elastic.co/u/Chiranjeevi_Medichar)\
**Post date:** [July 13, 2018, 1:28pm UTC](https://discuss.elastic.co/t/how-can-i-pass-a-extra-field/139870/3 "2018-07-13T13:28:47Z")

</div>

what is instance-id:

---

<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:** [July 13, 2018, 2:24pm UTC](https://discuss.elastic.co/t/how-can-i-pass-a-extra-field/139870/4 "2018-07-13T14:24:44Z")

</div>

This is only an example of a custom field.

---

<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:** [August 10, 2018, 4:24pm UTC](https://discuss.elastic.co/t/how-can-i-pass-a-extra-field/139870/5 "2018-08-10T16:24:44Z")

</div>

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