# Recursive file paths

**URL:** https://discuss.elastic.co/t/recursive-file-paths/101155
**Category:** Beats
**Tags:** auditbeat
**Created:** [September 20, 2017, 11:30am UTC](https://discuss.elastic.co/t/recursive-file-paths/101155 "2017-09-20T11:30:36Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![rednax](https://avatars.discourse-cdn.com/v4/letter/r/c89c15/32.png) [@rednax](https://discuss.elastic.co/u/rednax)
#### Post date: [September 20, 2017, 11:30am UTC](https://discuss.elastic.co/t/recursive-file-paths/101155/1 "2017-09-20T11:30:37Z")

</div>

Hi,

I was experimenting with Auditbeat file monitoring. What I wanted is to monitor all files in the "C:\Program Files" folder of a Windows VM. However, when altering files (add, remove, etc.) in some of the subdirectories I only receive update messages from the folder in which those files exist.

On the documentation it also said it does watch non-recursive. However, I (and I think that there are many people with me) would really like to monitor all files in all sub directories.

Is there a possibility that this will be done in the near future?  
One could for example define file.paths.include and file.paths.exclude to ensure certain subdirectories will be excluded.

Thanks!

---

<div class="post-metadata">

### Author: ![andrewkroh](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/andrewkroh/32/3784_2.png) [@andrewkroh](https://discuss.elastic.co/u/andrewkroh)
#### Post date: [September 20, 2017, 1:06pm UTC](https://discuss.elastic.co/t/recursive-file-paths/101155/2 "2017-09-20T13:06:13Z")

</div>

It's definitely possible. The level effort to add it for Windows is low (b/c the OS supports it), but we like to keep feature parity across operating systems so we also need to implement it on macOS and Linux. I think implementing it on macOS and Linux will take more effort because the underlying OS APIs don't natively support recursive monitoring and we need to implement it in userspace

Please open an enhancement [request](https://github.com/elastic/beats/issues/new) on Github for this. We don't yet have an issue for it (but I have heard a few other requests for this).

---

<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: [November 4, 2022, 4:58am UTC](https://discuss.elastic.co/t/recursive-file-paths/101155/3 "2022-11-04T04:58:51Z")

</div>


