# Drop event doesnt drop any

**URL:** <https://discuss.elastic.co/t/drop-event-doesnt-drop-any/358894>\
**Category:** Elastic Agent\
**Tags:** filebeat\
**Created:** [May 7, 2024, 6:17am UTC](https://discuss.elastic.co/t/drop-event-doesnt-drop-any/358894 "2024-05-07T06:17:18Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ninab](https://avatars.discourse-cdn.com/v4/letter/n/ed655f/32.png) [@ninab](https://discuss.elastic.co/u/ninab)\
**Post date:** [May 7, 2024, 6:17am UTC](https://discuss.elastic.co/t/drop-event-doesnt-drop-any/358894/1 "2024-05-07T06:17:18Z")

</div>

I am trying to config elastic-agent.yml to drop some events using processors but not filtering occures. Please advise:

- type: windows/metrics  
data\_stream.namespace: default  
use\_output: default  
period: 60s  
streams:
  - metricset: service  
data\_stream.dataset: windows.service  
data\_stream.type: metrics  
processors:
  - drop\_event.when.not.or:
    - contains.windows.service.display\_name: NAME1
    - contains.windows.service.display\_name: NAME3
    - contains.windows.service.display\_name: NAME2
