# Filter for specific folder activity

**URL:** <https://discuss.elastic.co/t/filter-for-specific-folder-activity/321395>\
**Category:** Beats\
**Tags:** winlogbeat\
**Created:** [December 16, 2022, 10:07am UTC](https://discuss.elastic.co/t/filter-for-specific-folder-activity/321395 "2022-12-16T10:07:18Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![BeyondRAM](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/beyondram/32/117322_2.png) [@BeyondRAM](https://discuss.elastic.co/u/BeyondRAM)\
**Post date:** [December 16, 2022, 10:07am UTC](https://discuss.elastic.co/t/filter-for-specific-folder-activity/321395/1 "2022-12-16T10:07:18Z")

</div>

Hello I wanted to know if it's possible to add a filter in winlogbeat to only have the activity of a specific folder and all it's files inside it, and itself by the way if the folder is renamed, deleted or something else.

For example I filtered all winlogbeat data with :

- One host (host.ip) ip of the server where I created a share folder with an file audit on to get the logs in the event viewer.

- One kind of event.codes : 4663 (An attempt was made to access an object)

- Where this happened (winlog.event\_data.ObjectName) which is the path to the file or folder (the object) where something happened

- Maybe the action in the "message" field like DELETE for example

I can do this for each files but not all files like \* after the folder path C:\Program Files\Test ELK\*

 ![1](https://us1.discourse-cdn.com/elastic/original/3X/7/c/7c7f778ee692959f5529567fb2da54f9898ce098.png)

 ![2](https://us1.discourse-cdn.com/elastic/original/3X/1/3/1311f4029a03fbfac80bb0591d95eeff28b13a9a.png)

 ![3](https://us1.discourse-cdn.com/elastic/original/3X/0/f/0fcdf7201fd8ef64bb4c32bf32456e9049b456bd.png)

And it doesn't works with "\*" after the "\"

I also tried this but the query isn't accepted

> <https://stackoverflow.com/questions/55146006/query-to-see-if-a-field-contains-a-string-using-query-dsl>

---

<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:** [January 13, 2023, 12:08pm UTC](https://discuss.elastic.co/t/filter-for-specific-folder-activity/321395/2 "2023-01-13T12:08:02Z")

</div>

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