# Filter and Grok

**URL:** <https://discuss.elastic.co/t/filter-and-grok/97273>\
**Category:** Logstash\
**Created:** [August 16, 2017, 1:57pm UTC](https://discuss.elastic.co/t/filter-and-grok/97273 "2017-08-16T13:57:24Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![hack3rcon](https://avatars.discourse-cdn.com/v4/letter/h/96bed5/32.png) [@hack3rcon](https://discuss.elastic.co/u/hack3rcon)\
**Post date:** [August 16, 2017, 1:57pm UTC](https://discuss.elastic.co/t/filter-and-grok/97273/1 "2017-08-16T13:57:24Z")

</div>

Hello.  
I need help about Logstash configuration. I like to define a Filter that extract specific information from my Windows Event Log. For example, In below Windows Event log I just need the Account name and the file or folder that deleted.

```auto
2017-08-16T02:52:49+04:30 172.30.10.17 WIN-4EQI0PB1GO1 MSWinEventLog 4 Security 41 Wed Aug 16 02:52:48 2017 4663 Microsoft-Windows-Security-Auditing WIN-4EQI0PB1GO1\Administrator N/A Success Audit WIN-4EQI0PB1GO1 File System An attempt was made to access an object. Subject: Security ID: S-1-5-21-1303077657-3015995219-3935651026-500 Account Name: Administrator Account Domain: WIN-4EQI0PB1GO1 Logon ID: 0x16cda Object: Object Server: Security Object Type: File Object Name: C:\Users\Administrator\Desktop\New folder\mic Handle ID: 0x3ac Process Information: Process ID: 0x35c Process Name: C:\Windows\explorer.exe Access Request Information: Accesses: DELETE Access Mask: 0x10000 40 path:/var/log/172.30.10.17/messages @timestamp:August 15th 2017, 00:22:13.667 @version:1 host:localhost.localdomain type:syslog tags:netsyslog _id:AV3kxXsuDr9iQpHqoXMQ _type:syslog _index:index_name-2017.08.15 _score: -
```

Can you show me some example or advice?

Thank you.

---

<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 16, 2017, 2:45pm UTC](https://discuss.elastic.co/t/filter-and-grok/97273/2 "2017-08-16T14:45:19Z")

</div>

Have you looked at the grok constructor web site?

---

<div class="post-metadata">

**Author:** ![hack3rcon](https://avatars.discourse-cdn.com/v4/letter/h/96bed5/32.png) [@hack3rcon](https://discuss.elastic.co/u/hack3rcon)\
**Post date:** [August 21, 2017, 11:19am UTC](https://discuss.elastic.co/t/filter-and-grok/97273/3 "2017-08-21T11:19:28Z")

</div>

Not really. I just need some example.

---

<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 18, 2017, 11:19am UTC](https://discuss.elastic.co/t/filter-and-grok/97273/4 "2017-09-18T11:19:39Z")

</div>

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