# Filter event from Winlogbeat

**URL:** <https://discuss.elastic.co/t/filter-event-from-winlogbeat/143684>\
**Category:** Logstash\
**Created:** [August 9, 2018, 12:11pm UTC](https://discuss.elastic.co/t/filter-event-from-winlogbeat/143684 "2018-08-09T12:11:52Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![gabberoid](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/gabberoid/32/33466_2.png) [@gabberoid](https://discuss.elastic.co/u/gabberoid)\
**Post date:** [August 9, 2018, 12:11pm UTC](https://discuss.elastic.co/t/filter-event-from-winlogbeat/143684/1 "2018-08-09T12:11:52Z")

</div>

Hi community.  
Somebody has any filter example for conf.d in order to filter Eventlog of Windows (Security)?  
I'm using Winlogbeat and didnt find any usable example in documentation.  
Need your help!

---

<div class="post-metadata">

**Author:** ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)\
**Post date:** [August 9, 2018, 1:30pm UTC](https://discuss.elastic.co/t/filter-event-from-winlogbeat/143684/2 "2018-08-09T13:30:13Z")

</div>

What kind of filtering are you looking for? Doesn't Winlogbeat split things up into fields out of the box?

---

<div class="post-metadata">

**Author:** ![gabberoid](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/gabberoid/32/33466_2.png) [@gabberoid](https://discuss.elastic.co/u/gabberoid)\
**Post date:** [August 9, 2018, 1:40pm UTC](https://discuss.elastic.co/t/filter-event-from-winlogbeat/143684/3 "2018-08-09T13:40:13Z")

</div>

A grok because I wrote the simplest grok :  
grok {  
match =\> { "message" =\> "%{GREEDYDATA:message}" }  
}

---

<div class="post-metadata">

**Author:** ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)\
**Post date:** [August 9, 2018, 1:49pm UTC](https://discuss.elastic.co/t/filter-event-from-winlogbeat/143684/4 "2018-08-09T13:49:52Z")

</div>

Sorry, I don't understand. You have a field from which you want to extract fields, e.g. using a grok filter? If so, what does that field contain and what do you want to extract from it?

---

<div class="post-metadata">

**Author:** ![gabberoid](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/gabberoid/32/33466_2.png) [@gabberoid](https://discuss.elastic.co/u/gabberoid)\
**Post date:** [August 9, 2018, 1:59pm UTC](https://discuss.elastic.co/t/filter-event-from-winlogbeat/143684/5 "2018-08-09T13:59:59Z")

</div>

For example I can extract a few files like these headers:  
**Subject** :  
Security ID: ...  
Account Name: ...  
Account Domain: ...  
Logon ID: ...

**Object** :  
Object Server: Security  
Object Type: -  
Object Name: -  
Object Handle: 0x4a4

**Process Information** :  
Process ID: 0x1468  
Process Name: C:\Windows\System32\wbem\WmiPrvSE.exe

**Requested Operation** :  
Desired Access: 1048577  
Privileges: SeBackupPrivilege

Or this is not so necessary and I can search these terms int he future within a message without any performance degradation?  
Sorry, I'm a new user of ES 🙂

---

<div class="post-metadata">

**Author:** ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)\
**Post date:** [August 9, 2018, 2:11pm UTC](https://discuss.elastic.co/t/filter-event-from-winlogbeat/143684/6 "2018-08-09T14:11:37Z")

</div>

Okay, I see. I thought Winlogbeat was able to provide these fields. Yeah, then you probably want to use a grok or kv filter. I have no example of that at hand.

> Or this is not so necessary and I can search these terms int he future within a message without any performance degradation?

No, you'll want to extract them to fields.

---

<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:** [September 6, 2018, 2:11pm UTC](https://discuss.elastic.co/t/filter-event-from-winlogbeat/143684/7 "2018-09-06T14:11:38Z")

</div>

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