# Drop fields not working in filebeat

**URL:** <https://discuss.elastic.co/t/drop-fields-not-working-in-filebeat/268058>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [March 23, 2021, 8:26am UTC](https://discuss.elastic.co/t/drop-fields-not-working-in-filebeat/268058 "2021-03-23T08:26:00Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![none96](https://avatars.discourse-cdn.com/v4/letter/n/76d3ee/32.png) [@none96](https://discuss.elastic.co/u/none96)\
**Post date:** [March 23, 2021, 8:26am UTC](https://discuss.elastic.co/t/drop-fields-not-working-in-filebeat/268058/1 "2021-03-23T08:26:00Z")

</div>

I'm trying to remove fields by using the drop fields, the syntax is as follows :

but it doesn't seem to work, any idea why?

---

<div class="post-metadata">

**Author:** ![ChrsMark](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/chrsmark/32/55858_2.png) [@ChrsMark](https://discuss.elastic.co/u/ChrsMark)\
**Post date:** [March 23, 2021, 9:09am UTC](https://discuss.elastic.co/t/drop-fields-not-working-in-filebeat/268058/2 "2021-03-23T09:09:17Z")

</div>

Hi!

According to the [docs](https://www.elastic.co/guide/en/beats/filebeat/current/drop-fields.html) the configuration looks ok.  
Can you share the complete filebeat's configuration?

---

<div class="post-metadata">

**Author:** ![none96](https://avatars.discourse-cdn.com/v4/letter/n/76d3ee/32.png) [@none96](https://discuss.elastic.co/u/none96)\
**Post date:** [March 23, 2021, 9:15am UTC](https://discuss.elastic.co/t/drop-fields-not-working-in-filebeat/268058/3 "2021-03-23T09:15:43Z")

</div>

I think it has something to do with the fields I'm trying to delete, so are there any fields that cannot be deleted?

---

<div class="post-metadata">

**Author:** ![grumo35](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/grumo35/32/59451_2.png) [@grumo35](https://discuss.elastic.co/u/grumo35)\
**Post date:** [March 23, 2021, 9:25am UTC](https://discuss.elastic.co/t/drop-fields-not-working-in-filebeat/268058/4 "2021-03-23T09:25:57Z")

</div>

Can you show indexed document as JSON ?

And please share the full filebeat config if possible.

---

<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:** [April 20, 2021, 11:26am UTC](https://discuss.elastic.co/t/drop-fields-not-working-in-filebeat/268058/5 "2021-04-20T11:26:16Z")

</div>

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