# Drop\_event syntax trouble with multiple processors (7.7.1)

**URL:** <https://discuss.elastic.co/t/drop-event-syntax-trouble-with-multiple-processors-7-7-1/276834>\
**Category:** Beats\
**Tags:** winlogbeat\
**Created:** [June 23, 2021, 6:15pm UTC](https://discuss.elastic.co/t/drop-event-syntax-trouble-with-multiple-processors-7-7-1/276834 "2021-06-23T18:15:41Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mike\_McGuire](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mike_mcguire/32/80928_2.png) [@Mike\_McGuire](https://discuss.elastic.co/u/Mike_McGuire)\
**Post date:** [June 23, 2021, 6:15pm UTC](https://discuss.elastic.co/t/drop-event-syntax-trouble-with-multiple-processors-7-7-1/276834/1 "2021-06-23T18:15:41Z")

</div>

This will get past the configuration check, but appears that it filters all events out.

I think the OR is what is tripping me up. The other posts I've studied are close, but I can't recreate a working solution.

The logic is:

```auto
drop_event.when.not:
 (event id == 4624) -and (LogonType in [2,7,10])
or
  (event id == 4634) -and (LogonType in [2,7,10])
or
  event id == 4616
  event id == 4625
  event id == 4778

```

And this is my attempt:

```auto
- winlogbeat.event_logs:
  - name: Security
    tags: ["winlog_security"]
    ignore_older: 24h
    processors:
        - drop_event.when.not:
            -and:
            equals.event_id: 4624
            -and:
                equals.winlog.event_data.LogonType: "2"
                equals.winlog.event_data.LogonType: "7"
                equals.winlog.event_data.LogonType: "10"
            equals.event_id: 4634
            -and:
                equals.winlog.event_data.LogonType: "2"
                equals.winlog.event_data.LogonType: "7"
                equals.winlog.event_data.LogonType: "10"
            -or:
                equals.event_id: 4616
                equals.event_id: 4625
                equals.event_id: 4778

```

---

<div class="post-metadata">

**Author:** ![Mike\_McGuire](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mike_mcguire/32/80928_2.png) [@Mike\_McGuire](https://discuss.elastic.co/u/Mike_McGuire)\
**Post date:** [June 23, 2021, 7:49pm UTC](https://discuss.elastic.co/t/drop-event-syntax-trouble-with-multiple-processors-7-7-1/276834/2 "2021-06-23T19:49:38Z")

</div>

This appears to read more like the goal, but doesn't pass the config check.

```auto
  - name: Security
    tags: ["winlog_security"]
    ignore_older: 24h
    processors:
      - drop_event.when.not.or:
        equals.event_id: 4624
        - or:
          equals.winlog.event_data.LogonType: "2"
          equals.winlog.event_data.LogonType: "7"
          equals.winlog.event_data.LogonType: "10"
        equals.event_id: 4634
        - or:
          equals.winlog.event_data.LogonType: "2"
          equals.winlog.event_data.LogonType: "7"
          equals.winlog.event_data.LogonType: "10"
        - or:
          equals.event_id: 4616
          equals.event_id: 4625
          equals.event_id: 4778

```

---

<div class="post-metadata">

**Author:** ![Mike\_McGuire](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mike_mcguire/32/80928_2.png) [@Mike\_McGuire](https://discuss.elastic.co/u/Mike_McGuire)\
**Post date:** [June 23, 2021, 10:34pm UTC](https://discuss.elastic.co/t/drop-event-syntax-trouble-with-multiple-processors-7-7-1/276834/3 "2021-06-23T22:34:07Z")

</div>

Attempting to simplify, still not the intended results.  
(cycling the service in between)  
Config is good.

```auto
winlogbeat.event_logs:
  - name: Security
    tags: ["winlog_security"]
    ignore_older: 24h
    processors:
      - drop_event.when.not.and:
        - equals.event_id: 4624
        - contains.winlog.event_data.LogonType: "7"

```

---

<div class="post-metadata">

**Author:** ![rugenl](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rugenl/32/12887_2.png) [@rugenl](https://discuss.elastic.co/u/rugenl)\
**Post date:** [June 23, 2021, 11:04pm UTC](https://discuss.elastic.co/t/drop-event-syntax-trouble-with-multiple-processors-7-7-1/276834/4 "2021-06-23T23:04:47Z")

</div>

I encountered a problem (I think a bug) with 7.13. Dropping by the numeric id wouldn't work, but this did:

```auto
 - drop_event.when:
          contains.winlog.event_id: "8013"

```

---

<div class="post-metadata">

**Author:** ![rugenl](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rugenl/32/12887_2.png) [@rugenl](https://discuss.elastic.co/u/rugenl)\
**Post date:** [June 25, 2021, 1:30am UTC](https://discuss.elastic.co/t/drop-event-syntax-trouble-with-multiple-processors-7-7-1/276834/5 "2021-06-25T01:30:38Z")

</div>

So, do you think equals.event\_id not working is a bug? I do, it's documented to work.

---

<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, 2021, 3:30am UTC](https://discuss.elastic.co/t/drop-event-syntax-trouble-with-multiple-processors-7-7-1/276834/6 "2021-07-23T03:30:43Z")

</div>

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