# Help with basic filtering of eventID from winlogbeat

**URL:** <https://discuss.elastic.co/t/help-with-basic-filtering-of-eventid-from-winlogbeat/226909>\
**Category:** Logstash\
**Created:** [April 7, 2020, 1:42pm UTC](https://discuss.elastic.co/t/help-with-basic-filtering-of-eventid-from-winlogbeat/226909 "2020-04-07T13:42:28Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![sbagciva](https://avatars.discourse-cdn.com/v4/letter/s/bbe5ce/32.png) [@sbagciva](https://discuss.elastic.co/u/sbagciva)\
**Post date:** [April 7, 2020, 1:42pm UTC](https://discuss.elastic.co/t/help-with-basic-filtering-of-eventid-from-winlogbeat/226909/1 "2020-04-07T13:42:29Z")

</div>

so Im trying to filter out a event code in my logstash conf file..

so I have the basic conf..

input {  
beats {  
port =\> ....  
type =\> "log"  
}  
}

to filter I put this  
filter {  
if [type] == "wineventlog" and [event\_id] == 33205 {  
drop { }  
}  
}

... this filter doesnt work and gives me errors?

---

<div class="post-metadata">

**Author:** ![Badger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/badger/32/25190_2.png) [@Badger](https://discuss.elastic.co/u/Badger)\
**Post date:** [April 7, 2020, 2:37pm UTC](https://discuss.elastic.co/t/help-with-basic-filtering-of-eventid-from-winlogbeat/226909/2 "2020-04-07T14:37:30Z")

</div>

> [@sbagciva](#):
>
> gives me errors?

What are the errors?

---

<div class="post-metadata">

**Author:** ![sbagciva](https://avatars.discourse-cdn.com/v4/letter/s/bbe5ce/32.png) [@sbagciva](https://discuss.elastic.co/u/sbagciva)\
**Post date:** [April 7, 2020, 3:06pm UTC](https://discuss.elastic.co/t/help-with-basic-filtering-of-eventid-from-winlogbeat/226909/3 "2020-04-07T15:06:15Z")

</div>

i figured out my error from another post in the forum. thank you. im suppose to do

if [winlog][event\_id] = 33205 {  
drop { }  
}

---

<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:** [May 5, 2020, 3:08pm UTC](https://discuss.elastic.co/t/help-with-basic-filtering-of-eventid-from-winlogbeat/226909/4 "2020-05-05T15:08:36Z")

</div>

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