# Filebeat 7.16 drop\_fields processor not working

**URL:** <https://discuss.elastic.co/t/filebeat-7-16-drop-fields-processor-not-working/304916>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [May 17, 2022, 10:09am UTC](https://discuss.elastic.co/t/filebeat-7-16-drop-fields-processor-not-working/304916 "2022-05-17T10:09:21Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sederfo](https://avatars.discourse-cdn.com/v4/letter/s/d26b3c/32.png) [@Sederfo](https://discuss.elastic.co/u/Sederfo)\
**Post date:** [May 17, 2022, 10:09am UTC](https://discuss.elastic.co/t/filebeat-7-16-drop-fields-processor-not-working/304916/1 "2022-05-17T10:09:21Z")

</div>

Hello! We are having trouble dropping fields from messages using Filebeat 7.16.  
We tried to drop fields using the "drop\_fields" processor:

```auto
processors:
  - drop_fields:
      fields: ["cisco.ftd.message_id"]
      ignore_missing: true

```

but to no avail. The field still gets sent to elastic. We also tried using a "script" processor like so:

```auto
function process(event) {
    event.Delete("cisco.ftd.message_id")
    return event;
}

- script:
lang: javascript
id: ftd_drop
file: ${path.config}/ftd_drop.js

```

And the field is still there. It does this with every 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:** [June 14, 2022, 12:09pm UTC](https://discuss.elastic.co/t/filebeat-7-16-drop-fields-processor-not-working/304916/2 "2022-06-14T12:09:29Z")

</div>

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