# Drop\_fields not working

**URL:** <https://discuss.elastic.co/t/drop-fields-not-working/128615>\
**Category:** Beats\
**Tags:** metricbeat\
**Created:** [April 19, 2018, 2:27am UTC](https://discuss.elastic.co/t/drop-fields-not-working/128615 "2018-04-19T02:27:02Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sjaak01](https://avatars.discourse-cdn.com/v4/letter/s/73ab20/32.png) [@Sjaak01](https://discuss.elastic.co/u/Sjaak01)\
**Post date:** [April 19, 2018, 2:27am UTC](https://discuss.elastic.co/t/drop-fields-not-working/128615/1 "2018-04-19T02:27:02Z")

</div>

Hi,

The config below doesn't drop fields.

```auto
- module: system
  period: 10m
  metricsets:
    - process
    - process_summary
    #- core
    - diskio
    #- socket
  processes: ['.*']
  process.include_top_n:
    by_cpu: 5 # include top 5 processes by CPU
    by_memory: 5 # include top 5 processes by memory
  processors:
    - drop_fields.fields: ["beat.version"]
```

---

<div class="post-metadata">

**Author:** ![ruflin](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ruflin/32/3116_2.png) [@ruflin](https://discuss.elastic.co/u/ruflin)\
**Post date:** [April 19, 2018, 9:04am UTC](https://discuss.elastic.co/t/drop-fields-not-working/128615/2 "2018-04-19T09:04:52Z")

</div>

You must correct the indentation of the `processors` here an put it on the top level to be able to remove `beat.version`.

Note: Be aware that removing beat.version could cause issues with the index pattern etc.

---

<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 17, 2018, 9:05am UTC](https://discuss.elastic.co/t/drop-fields-not-working/128615/3 "2018-05-17T09:05:04Z")

</div>

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