# How to add additional fields on filebeat

**URL:** <https://discuss.elastic.co/t/how-to-add-additional-fields-on-filebeat/255489>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [November 16, 2020, 10:18am UTC](https://discuss.elastic.co/t/how-to-add-additional-fields-on-filebeat/255489 "2020-11-16T10:18:25Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![elkrocks](https://avatars.discourse-cdn.com/v4/letter/e/73ab20/32.png) [@elkrocks](https://discuss.elastic.co/u/elkrocks)\
**Post date:** [November 16, 2020, 10:18am UTC](https://discuss.elastic.co/t/how-to-add-additional-fields-on-filebeat/255489/1 "2020-11-16T10:18:25Z")

</div>

I want to add additional field on filebeat.yml. I want to name it as instancename and the value is the instance name of my aws ec2 instance. How can I add it to the filebeat config?

---

<div class="post-metadata">

**Author:** ![MarianaD](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/marianad/32/42687_2.png) [@MarianaD](https://discuss.elastic.co/u/MarianaD)\
**Post date:** [November 17, 2020, 1:39pm UTC](https://discuss.elastic.co/t/how-to-add-additional-fields-on-filebeat/255489/2 "2020-11-17T13:39:41Z")

</div>

hi @elkrocks, isn't the aws ec2 instance name already included in the event? Is the goal to rename it?

---

<div class="post-metadata">

**Author:** ![elkrocks](https://avatars.discourse-cdn.com/v4/letter/e/73ab20/32.png) [@elkrocks](https://discuss.elastic.co/u/elkrocks)\
**Post date:** [November 18, 2020, 7:09am UTC](https://discuss.elastic.co/t/how-to-add-additional-fields-on-filebeat/255489/3 "2020-11-18T07:09:32Z")

</div>

I just add below line. and it works

```auto
processors:
  - add_fields:
      fields:
        app.instance: 1
      target: ""

```

---

<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:** [December 16, 2020, 9:09am UTC](https://discuss.elastic.co/t/how-to-add-additional-fields-on-filebeat/255489/4 "2020-12-16T09:09:37Z")

</div>

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