# Filebeat didn't drop some of the fields

**URL:** <https://discuss.elastic.co/t/filebeat-didnt-drop-some-of-the-fields/86545>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [May 21, 2017, 1:36am UTC](https://discuss.elastic.co/t/filebeat-didnt-drop-some-of-the-fields/86545 "2017-05-21T01:36:12Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![John\_06](https://avatars.discourse-cdn.com/v4/letter/j/7c8e57/32.png) [@John\_06](https://discuss.elastic.co/u/John_06)\
**Post date:** [May 21, 2017, 1:36am UTC](https://discuss.elastic.co/t/filebeat-didnt-drop-some-of-the-fields/86545/1 "2017-05-21T01:36:12Z")

</div>

I am trying to drop some not needed fields with Filebeat:

filebeat.yml:

```
filebeat.prospectors:

- input_type: log
  paths:
    - /var/log/app1.log
  fields:
    app_name: app1
  fields_under_root: true

processors:
 - drop_fields:
     fields: ["type", "beat.name", "beat.version", "_type", "_score", "_id", "@version", "offset"]

registry_file: /var/lib/filebeat/registry

output.logstash:
   ...

```

As of now, only `beat.name`, `beat.version` and `offset` fields have been dropped.  
How can I drop other fields?

![](https://us1.discourse-cdn.com/elastic/original/3X/5/4/5406f3a99d103866939679cef9491e9416736db3.png)

---

<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:** [May 22, 2017, 1:17pm UTC](https://discuss.elastic.co/t/filebeat-didnt-drop-some-of-the-fields/86545/2 "2017-05-22T13:17:55Z")

</div>

Be aware that not all these fields are generated by filebeat, but also some by elasticsearch as they are required for elasticsearch to work, for example all the `_*` fields. Others are probably added by Logstash.

---

<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 19, 2017, 1:18pm UTC](https://discuss.elastic.co/t/filebeat-didnt-drop-some-of-the-fields/86545/3 "2017-06-19T13:18:05Z")

</div>

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