# Drop\_fields not working on doc

**URL:** <https://discuss.elastic.co/t/drop-fields-not-working-on-doc/211545>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [December 12, 2019, 1:05am UTC](https://discuss.elastic.co/t/drop-fields-not-working-on-doc/211545 "2019-12-12T01:05:52Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![Michal\_Pristas](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/michal_pristas/32/46639_2.png) [@Michal\_Pristas](https://discuss.elastic.co/u/Michal_Pristas)\
**Post date:** [December 12, 2019, 11:23am UTC](https://discuss.elastic.co/t/drop-fields-not-working-on-doc/211545/4 "2019-12-12T11:23:45Z")

</div>

the problem is that you have an array of `signatures`  
you have few options here.

first and ugly one is to provide enough remove entries so it will look like this

```auto
- drop_event
    fields: ["signatures.[0].marks","signatures.[1].marks","signatures.[2].marks", etc.]

```

or use log stash (if you have one) and use ruby filter as discussed here: [Logstash filter mutate remove\_field inside of an array](https://discuss.elastic.co/t/logstash-filter-mutate-remove-field-inside-of-an-array/168503/11)

---

_[View the full topic](https://discuss.elastic.co/t/drop-fields-not-working-on-doc/211545)._
