# Is it possible to avoid unwanted log fields in Filebeat?

**URL:** https://discuss.elastic.co/t/is-it-possible-to-avoid-unwanted-log-fields-in-filebeat/74489
**Category:** Beats
**Tags:** filebeat
**Created:** [February 9, 2017, 12:01pm UTC](https://discuss.elastic.co/t/is-it-possible-to-avoid-unwanted-log-fields-in-filebeat/74489 "2017-02-09T12:01:41Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![elasticheart](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/elasticheart/32/65189_2.png) [@elasticheart](https://discuss.elastic.co/u/elasticheart)
#### Post date: [February 9, 2017, 12:01pm UTC](https://discuss.elastic.co/t/is-it-possible-to-avoid-unwanted-log-fields-in-filebeat/74489/1 "2017-02-09T12:01:41Z")

</div>

Hi,

I am using Filebeat GA 5.0.0. I have log files having entries like;

```
<Jan 16, 2017 9:35:11 AM GMT> <field_a> <field_b> <field_c> <field_d> <field_e> <field_f> <field_g> <field_h> <field_i> <field_j> <field_k>

```

I dont want to populate fields `<field_c>`, `<field_d>`, `<field_e>` and `<field_f>` in my elasticsearch. Currently, I am achieving this at Logstash, using `grok` and `mutate`. Is it possible to do this in FIlebeat, so that Filebeat removes these unwanted entries before shipping?

Thanks in advance.

---

<div class="post-metadata">

### Author: ![andrewkroh](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/andrewkroh/32/3784_2.png) [@andrewkroh](https://discuss.elastic.co/u/andrewkroh)
#### Post date: [February 9, 2017, 1:47pm UTC](https://discuss.elastic.co/t/is-it-possible-to-avoid-unwanted-log-fields-in-filebeat/74489/2 "2017-02-09T13:47:04Z")

</div>

No, this is not possible.

It would only be possible if the logs were structured as JSON then you could parse them in Filebeat and `drop_fields`. But you need grok.

---

<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: [March 9, 2017, 1:47pm UTC](https://discuss.elastic.co/t/is-it-possible-to-avoid-unwanted-log-fields-in-filebeat/74489/3 "2017-03-09T13:47:09Z")

</div>

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