# Nested condition in drop\_event processor

**URL:** https://discuss.elastic.co/t/nested-condition-in-drop-event-processor/275760
**Category:** Beats
**Tags:** winlogbeat
**Created:** [June 13, 2021, 12:16pm UTC](https://discuss.elastic.co/t/nested-condition-in-drop-event-processor/275760 "2021-06-13T12:16:01Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![remrem](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/remrem/32/88820_2.png) [@remrem](https://discuss.elastic.co/u/remrem)
#### Post date: [June 13, 2021, 12:16pm UTC](https://discuss.elastic.co/t/nested-condition-in-drop-event-processor/275760/1 "2021-06-13T12:16:01Z")

</div>

I want to drop events with the following conditions:  
`"If (event.id=(x or y) AND user.name=a) OR (event.id= z and process.name = 'cmd.exe') "`

But I just can't figure out the conditions.

---

<div class="post-metadata">

### Author: ![Mario\_Castro](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mario_castro/32/35107_2.png) [@Mario\_Castro](https://discuss.elastic.co/u/Mario_Castro)
#### Post date: [June 14, 2021, 9:03am UTC](https://discuss.elastic.co/t/nested-condition-in-drop-event-processor/275760/2 "2021-06-14T09:03:32Z")

</div>

Do you have an example of your attempt? How far have you reached. Can you share the error too, please?

---

<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: [July 12, 2021, 11:04am UTC](https://discuss.elastic.co/t/nested-condition-in-drop-event-processor/275760/3 "2021-07-12T11:04:32Z")

</div>

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