# Drop\_event does NOT work

**URL:** <https://discuss.elastic.co/t/drop-event-does-not-work/178342>\
**Category:** Beats\
**Tags:** metricbeat\
**Created:** [April 25, 2019, 1:57am UTC](https://discuss.elastic.co/t/drop-event-does-not-work/178342 "2019-04-25T01:57:36Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jasony](https://avatars.discourse-cdn.com/v4/letter/j/a3d4f5/32.png) [@jasony](https://discuss.elastic.co/u/jasony)\
**Post date:** [April 25, 2019, 1:57am UTC](https://discuss.elastic.co/t/drop-event-does-not-work/178342/1 "2019-04-25T01:57:36Z")

</div>

Hello

I am trying to drop event when a specific kv is received. I executed metricbeat with using below yaml lines, but the drop\_event never worked as what i expected.

can you please advise what i wrongly configured in the yaml file? a part of my .yaml file is as below.

please advise.

```
metricbeat.modules:
- module: system
  metricsets:
    - process
  processors:
    - drop_event.when:
    or:
      - equals:
          system.process.username: root
      - equals :
          system.process.username: onmadm

processes: ['.*']
period: 10s

output.kafka:
  version: 0.10.2.1
  enabled: true
  hosts: ["xxx:9092"]
  topic: 'xxx'

```

FYI,  
environment what i am using metricbeat is centos7 and metricbeat-6.7.1 version.

thank you!!

---

<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:** [April 26, 2019, 9:11am UTC](https://discuss.elastic.co/t/drop-event-does-not-work/178342/2 "2019-04-26T09:11:40Z")

</div>

Any chance you could share the debug log when running the above?

Also it seems the `or:`indentation above is a bit off?

---

<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:** [May 24, 2019, 9:11am UTC](https://discuss.elastic.co/t/drop-event-does-not-work/178342/3 "2019-05-24T09:11:42Z")

</div>

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