# Filebeat processors not dropping events

**URL:** <https://discuss.elastic.co/t/filebeat-processors-not-dropping-events/264875>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [February 19, 2021, 3:14pm UTC](https://discuss.elastic.co/t/filebeat-processors-not-dropping-events/264875 "2021-02-19T15:14:32Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rahul\_Dankhara](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rahul_dankhara/32/75161_2.png) [@Rahul\_Dankhara](https://discuss.elastic.co/u/Rahul_Dankhara)\
**Post date:** [February 19, 2021, 3:14pm UTC](https://discuss.elastic.co/t/filebeat-processors-not-dropping-events/264875/1 "2021-02-19T15:14:32Z")

</div>

Hi Team,

I am using filebeat 7.9.3 to ship events.  
I do want to drop events that contains any of the below key-value pairs. I am using processors to do the same, but somehow it is not working for me.

```auto
      processors:
      - drop_event:
          when:
            or:
              - equals:
                  source.ip: "10.0.0.8"
              - contains:
                  data.win.eventdata.parentImage: "LogMeIn.exe"
              - contains:
                  data.win.eventdata.commandLine: "Teams.exe"
              - contains:
                  data.win.eventdata.commandLine: "OneDrive"
              - contains:
                  data.win.eventdata.commandLine: "GoToMeeting"
              - contains:
                  data.win.eventdata.image: "chrome.exe"

```

---

<div class="post-metadata">

**Author:** ![Rahul\_Dankhara](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rahul_dankhara/32/75161_2.png) [@Rahul\_Dankhara](https://discuss.elastic.co/u/Rahul_Dankhara)\
**Post date:** [February 19, 2021, 3:15pm UTC](https://discuss.elastic.co/t/filebeat-processors-not-dropping-events/264875/2 "2021-02-19T15:15:53Z")

</div>

Also, Which option is better to use Processors or Exclude?

---

<div class="post-metadata">

**Author:** ![jsoriano](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jsoriano/32/27920_2.png) [@jsoriano](https://discuss.elastic.co/u/jsoriano)\
**Post date:** [February 19, 2021, 4:41pm UTC](https://discuss.elastic.co/t/filebeat-processors-not-dropping-events/264875/3 "2021-02-19T16:41:53Z")

</div>

Hi @Rahul_Dankhara,

Where are you placing these `processors` in your config?

Could you share an example document that is not being dropped with these conditions?

---

<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 19, 2021, 6:42pm UTC](https://discuss.elastic.co/t/filebeat-processors-not-dropping-events/264875/4 "2021-03-19T18:42:24Z")

</div>

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