# 6.7.1: Regarding Custom Fields

**URL:** <https://discuss.elastic.co/t/6-7-1-regarding-custom-fields/177473>\
**Category:** Beats\
**Created:** [April 18, 2019, 1:25pm UTC](https://discuss.elastic.co/t/6-7-1-regarding-custom-fields/177473 "2019-04-18T13:25:12Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![dawiro](https://avatars.discourse-cdn.com/v4/letter/d/71e660/32.png) [@dawiro](https://discuss.elastic.co/u/dawiro)\
**Post date:** [April 18, 2019, 1:25pm UTC](https://discuss.elastic.co/t/6-7-1-regarding-custom-fields/177473/1 "2019-04-18T13:25:12Z")

</div>

Hi,  
I am using filebeat as follows:

- inputs disabled
- modules enabled
- output to logstash

In that situation how can I add custom fields under root to all outgoing traffic? i see a processor for it in 7.0 but it is unclear how it should be done in 6.x...

Regards,  
D

---

<div class="post-metadata">

**Author:** ![shaunak](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/shaunak/32/6643_2.png) [@shaunak](https://discuss.elastic.co/u/shaunak)\
**Post date:** [April 18, 2019, 2:39pm UTC](https://discuss.elastic.co/t/6-7-1-regarding-custom-fields/177473/2 "2019-04-18T14:39:05Z")

</div>

You should be able to use the top-level `fields` setting to define your fields. Also, you can set the top-level `fields_under_root` setting to `true`.

Shaunak

---

<div class="post-metadata">

**Author:** ![Wayne\_Taylor](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/wayne_taylor/32/45984_2.png) [@Wayne\_Taylor](https://discuss.elastic.co/u/Wayne_Taylor)\
**Post date:** [April 18, 2019, 3:47pm UTC](https://discuss.elastic.co/t/6-7-1-regarding-custom-fields/177473/3 "2019-04-18T15:47:53Z")

</div>

Take a look at this - [SOLVED - Index Template for filebeat - fails on fields](https://discuss.elastic.co/t/solved-index-template-for-filebeat-fails-on-fields/176745). I have this working and just had an issue initializing template since I was using beats -\> Logstash -\> ES which the team helped solve.

---

<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:** [May 16, 2019, 5:48pm UTC](https://discuss.elastic.co/t/6-7-1-regarding-custom-fields/177473/4 "2019-05-16T17:48:01Z")

</div>

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