# The processors only filter part of message

**URL:** <https://discuss.elastic.co/t/the-processors-only-filter-part-of-message/110055>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [December 3, 2017, 3:05pm UTC](https://discuss.elastic.co/t/the-processors-only-filter-part-of-message/110055 "2017-12-03T15:05:12Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Augustus1995](https://avatars.discourse-cdn.com/v4/letter/a/7cd45c/32.png) [@Augustus1995](https://discuss.elastic.co/u/Augustus1995)\
**Post date:** [December 3, 2017, 3:05pm UTC](https://discuss.elastic.co/t/the-processors-only-filter-part-of-message/110055/1 "2017-12-03T15:05:12Z")

</div>

Hi, i want to use filebeat send message to elasticsearch directly. And i use processors as a filter to drop some useless fields. But when i check message from kibana only half messages drop fields. And i only run one filebeat. so is there have some solutions to let all messages drop fields.

here is my filebeat.yml

```
filebeat.prospectors:
- type: log
  enabled: true
  paths:
    - h:\log\*
filebeat.config.modules:
  path: ${path.config}/modules.d/*.yml
  reload.enabled: false
setup.template.settings:
  index.number_of_shards: 3
output.elasticsearch:
  hosts: ["localhost:9200"]
processors:
- drop_fields:
    fields: ["offset", "_score", "_version","beat"]

```

And the pic of my kibana:

 ![捕获](https://us1.discourse-cdn.com/elastic/original/3X/9/d/9de72025cbff93e35b46416e25286bbadef97c0e.PNG)

what's more, can i decode the json in the `"message"`?  
i have try`- decode_json_fields:` but it didn't work

---

<div class="post-metadata">

**Author:** ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)\
**Post date:** [December 3, 2017, 3:40pm UTC](https://discuss.elastic.co/t/the-processors-only-filter-part-of-message/110055/2 "2017-12-03T15:40:44Z")

</div>

`_score` and `_version` are internal Elasticsearch fields, so do not exist in Filebeat and can not be dropped.

---

<div class="post-metadata">

**Author:** ![Augustus1995](https://avatars.discourse-cdn.com/v4/letter/a/7cd45c/32.png) [@Augustus1995](https://discuss.elastic.co/u/Augustus1995)\
**Post date:** [December 3, 2017, 3:43pm UTC](https://discuss.elastic.co/t/the-processors-only-filter-part-of-message/110055/3 "2017-12-03T15:43:45Z")

</div>

> [@Christian\_Dahlqvist](#):
>
> o not exist in Filebeat and can not be

but what about `offset` and `beat` it is in the `_source` and why in some message i could drop it but the other not

---

<div class="post-metadata">

**Author:** ![steffens](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/steffens/32/79630_2.png) [@steffens](https://discuss.elastic.co/u/steffens)\
**Post date:** [December 4, 2017, 1:31pm UTC](https://discuss.elastic.co/t/the-processors-only-filter-part-of-message/110055/4 "2017-12-04T13:31:27Z")

</div>

How many filebeat instances have you running? Can you not exclude the `beat` 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:** [January 1, 2018, 1:31pm UTC](https://discuss.elastic.co/t/the-processors-only-filter-part-of-message/110055/5 "2018-01-01T13:31:54Z")

</div>

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