# Struggling with Drop\_Event Processor Syntax and Structure

**URL:** <https://discuss.elastic.co/t/struggling-with-drop-event-processor-syntax-and-structure/238530>\
**Category:** Beats\
**Tags:** winlogbeat\
**Created:** [June 24, 2020, 4:13pm UTC](https://discuss.elastic.co/t/struggling-with-drop-event-processor-syntax-and-structure/238530 "2020-06-24T16:13:56Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![eafrost.cissp](https://avatars.discourse-cdn.com/v4/letter/e/cab0a1/32.png) [@eafrost.cissp](https://discuss.elastic.co/u/eafrost.cissp)\
**Post date:** [June 24, 2020, 4:13pm UTC](https://discuss.elastic.co/t/struggling-with-drop-event-processor-syntax-and-structure/238530/1 "2020-06-24T16:13:56Z")

</div>

I'm struggling to get the proper syntax and structure for the following criteria for dropping a specific security log event in Winlogbeat. I can create something that passes the configuration check but it doesn't produce the desired results. Following is a text description of what I'm trying to do. What would be the equivalent drop\_event processor?

Drop event when event.code = 6488 and winlog.event\_data.SubjectUserName = '._$' and winglog.event\_data.TokenElevationType is not '%%1937' and process.parent.name is not 'cmd.exe' or 'powershell._'

I've looked for similar examples in this forum but haven't found anything.

---

<div class="post-metadata">

**Author:** ![Kaiyan\_Sheng](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kaiyan_sheng/32/38247_2.png) [@Kaiyan\_Sheng](https://discuss.elastic.co/u/Kaiyan_Sheng)\
**Post date:** [June 25, 2020, 1:06am UTC](https://discuss.elastic.co/t/struggling-with-drop-event-processor-syntax-and-structure/238530/2 "2020-06-25T01:06:24Z")

</div>

Hi! I did not test this but I'm thinking something like this:

```auto
processors:
  - drop_event:
      when:
        and:
           - equals:
               event.code: 6488
           - equals:
               winlog.event_data.SubjectUserName: .$
           - not.equals:
               winglog.event_data.TokenElevationType: %%1937
           - or:
             - not.equals: process.parent.name: cmd.exe
             - not.equals: process.parent.name: powershell

```

---

<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 23, 2020, 3:06am UTC](https://discuss.elastic.co/t/struggling-with-drop-event-processor-syntax-and-structure/238530/3 "2020-07-23T03:06:29Z")

</div>

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