# Filter winlog.event\_id in wineventlog

**URL:** <https://discuss.elastic.co/t/filter-winlog-event-id-in-wineventlog/206507>\
**Category:** Logstash\
**Created:** [November 5, 2019, 1:57am UTC](https://discuss.elastic.co/t/filter-winlog-event-id-in-wineventlog/206507 "2019-11-05T01:57:18Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![lusynda](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/lusynda/32/53557_2.png) [@lusynda](https://discuss.elastic.co/u/lusynda)\
**Post date:** [November 5, 2019, 1:57am UTC](https://discuss.elastic.co/t/filter-winlog-event-id-in-wineventlog/206507/1 "2019-11-05T01:57:18Z")

</div>

Dear all  
I am trying to filter the window event\_id i want to remove the message field and add my own field  
But i have try 3 method i can think of like this  
[winlog][event\_id] == 4624  
winlog.event\_id == 4624  
[event\_id] == 4624

None of what i try do anything to the log and one of them even stop log from comming

Please help me

---

<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:** [November 5, 2019, 3:03pm UTC](https://discuss.elastic.co/t/filter-winlog-event-id-in-wineventlog/206507/2 "2019-11-05T15:03:33Z")

</div>

What does an event look like if you send it to

```
output { stdout { codec => rubydebug } }
```

---

<div class="post-metadata">

**Author:** ![m2ria](https://avatars.discourse-cdn.com/v4/letter/m/6bbea6/32.png) [@m2ria](https://discuss.elastic.co/u/m2ria)\
**Post date:** [November 27, 2019, 9:53pm UTC](https://discuss.elastic.co/t/filter-winlog-event-id-in-wineventlog/206507/3 "2019-11-27T21:53:57Z")

</div>

I have same issue since upgrading logstash to 7.4.2. It will not match any field from winlogbeats. Tested rubydebug and all fields show up fine. For example:

"winlog" =\> {  
.........

```
         "event_id" => 4688,
  ................
}

```

It still does not match  
[winlog.event\_id] == 4688

---

<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:** [November 28, 2019, 2:01am UTC](https://discuss.elastic.co/t/filter-winlog-event-id-in-wineventlog/206507/4 "2019-11-28T02:01:52Z")

</div>

If event\_id is a field nested inside the winlog object then although in kibana you would refer to it as winlog.event\_id, in logstash you have to refer to it as [winlog][event\_id]

---

<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:** [December 26, 2019, 2:09am UTC](https://discuss.elastic.co/t/filter-winlog-event-id-in-wineventlog/206507/5 "2019-12-26T02:09:44Z")

</div>

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