# Drop\_fields or include\_fields dosn't worsk

**URL:** <https://discuss.elastic.co/t/drop-fields-or-include-fields-dosnt-worsk/209049>\
**Category:** Beats\
**Tags:** metricbeat\
**Created:** [November 22, 2019, 11:11am UTC](https://discuss.elastic.co/t/drop-fields-or-include-fields-dosnt-worsk/209049 "2019-11-22T11:11:41Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![science162](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/science162/32/52601_2.png) [@science162](https://discuss.elastic.co/u/science162)\
**Post date:** [November 22, 2019, 11:11am UTC](https://discuss.elastic.co/t/drop-fields-or-include-fields-dosnt-worsk/209049/1 "2019-11-22T11:11:41Z")

</div>

hello,

I want to suppress some fields I doesn't use from and event.  
Neither processor, Nor filters works I don't Know what is the matter I looked for other issue close from that but did'nt find solution.  
When I use Processor or filter, metricbeat send nothing to elasticsearch but when I remove , every fields are sent

Here is my configuration file : system.yml

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/1/0/10fe04da617aaccd1c6f130ae791cf4eecda8d8e.png)

---

<div class="post-metadata">

**Author:** ![pjanzen](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/pjanzen/32/13756_2.png) [@pjanzen](https://discuss.elastic.co/u/pjanzen)\
**Post date:** [November 25, 2019, 9:30am UTC](https://discuss.elastic.co/t/drop-fields-or-include-fields-dosnt-worsk/209049/2 "2019-11-25T09:30:09Z")

</div>

HI,

First off, you should not post images, people use all sorts of devices and on most of them they very small and hard to read. You could copy & paste the info and use the \< /\> tag to format it properly.

Reading you image it syntax looks different then the docs specify. [Have a read here, maybe it helps.](https://www.elastic.co/guide/en/beats/metricbeat/current/drop-fields.html)

Regards,  
Paul.

---

<div class="post-metadata">

**Author:** ![science162](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/science162/32/52601_2.png) [@science162](https://discuss.elastic.co/u/science162)\
**Post date:** [November 25, 2019, 10:03am UTC](https://discuss.elastic.co/t/drop-fields-or-include-fields-dosnt-worsk/209049/3 "2019-11-25T10:03:00Z")

</div>

Hi,

Thank you for your answer.  
Actually I've tried every configuration in docs but no results.  
When I add processors or filter , No data is sent to Elasticsearch.  
The only enabled module is system.

Regards

```
#========================== Modules configuration ============================  
metricbeat.config.modules:
  path: ${path.config}/modules.d/*.yml
  reload.enabled: true

fields:
  service: metricbeat

cpu.metrics: ["percentages"]
core.metrics: ["percentages"]

processors:
 - drop_fields:
     when:
        equals:
          metricset.name: "cpu"
     fields: ["system.cpu.steal.pct", "system.cpu.irq.pct", "system.cpu.iowait.pct"]
     ignore_missing: false

output.logstash:
  hosts: ["127.0.0.1:5043"]
```

---

<div class="post-metadata">

**Author:** ![science162](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/science162/32/52601_2.png) [@science162](https://discuss.elastic.co/u/science162)\
**Post date:** [November 25, 2019, 10:47am UTC](https://discuss.elastic.co/t/drop-fields-or-include-fields-dosnt-worsk/209049/4 "2019-11-25T10:47:59Z")

</div>

I removed the ignore missing clause and it works !

---

<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:** [December 23, 2019, 10:48am UTC](https://discuss.elastic.co/t/drop-fields-or-include-fields-dosnt-worsk/209049/5 "2019-12-23T10:48:06Z")

</div>

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