# Custom field name not showing in Filebeat

**URL:** <https://discuss.elastic.co/t/custom-field-name-not-showing-in-filebeat/212088>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [December 17, 2019, 4:14am UTC](https://discuss.elastic.co/t/custom-field-name-not-showing-in-filebeat/212088 "2019-12-17T04:14:19Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![katara](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/katara/32/60143_2.png) [@katara](https://discuss.elastic.co/u/katara)\
**Post date:** [December 17, 2019, 4:14am UTC](https://discuss.elastic.co/t/custom-field-name-not-showing-in-filebeat/212088/1 "2019-12-17T04:14:20Z")

</div>

Below is how im trying to add a custom fiels name in my filebeat 7.2.0 filebeat.inputs:

```auto
- type: log
  enabled: true
  paths:
    - D:\Oasis\Logs\Admin_Log\*
    - D:\Oasis\Logs\ERA_Log\*
    - D:\OasisServices\Logs\*
  processors:
- add_fields:
     fields:
     application: oasis

```

and with this, im expecting a new field called `application` whose data entries will be `'oasis'` . But i dont get any. I also tried

```auto
 fields:
    application: oasis/'oasis'

```

Help me with this.

---

<div class="post-metadata">

**Author:** ![Magnus\_Kessler](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnus_kessler/32/42001_2.png) [@Magnus\_Kessler](https://discuss.elastic.co/u/Magnus_Kessler)\
**Post date:** [December 17, 2019, 8:29am UTC](https://discuss.elastic.co/t/custom-field-name-not-showing-in-filebeat/212088/2 "2019-12-17T08:29:22Z")

</div>

Are you expecting to find `application` at the top level of the document? If yes, you need to set `target: ''` under `add_fields` as per the [documentation](https://www.elastic.co/guide/en/beats/filebeat/current/add-fields.html). I'd expect you to have a `fields.application` key in your documents with the configuration you showed.

---

<div class="post-metadata">

**Author:** ![katara](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/katara/32/60143_2.png) [@katara](https://discuss.elastic.co/u/katara)\
**Post date:** [December 17, 2019, 10:11am UTC](https://discuss.elastic.co/t/custom-field-name-not-showing-in-filebeat/212088/3 "2019-12-17T10:11:19Z")

</div>

Hi @Magnus_Kessler,  
I just tried the below, but no luck,

> ```
> processors:
> - add_fields:
> target: 'input'
> fields:
> appname: oasis
> 
> ```

Am i missing something?

---

<div class="post-metadata">

**Author:** ![Magnus\_Kessler](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnus_kessler/32/42001_2.png) [@Magnus\_Kessler](https://discuss.elastic.co/u/Magnus_Kessler)\
**Post date:** [December 18, 2019, 9:57am UTC](https://discuss.elastic.co/t/custom-field-name-not-showing-in-filebeat/212088/4 "2019-12-18T09:57:53Z")

</div>

Your example should work. However, please check your indentation levels in the YAML file. The original example had `processors` nested inside of a log input.

---

<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 15, 2020, 9:59am UTC](https://discuss.elastic.co/t/custom-field-name-not-showing-in-filebeat/212088/5 "2020-01-15T09:59:22Z")

</div>

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