Getting Data In

How to configure fschange Windows file monitoring, but exclude a sub-folder using blacklist?

mattvickers
Engager

I'm trying to monitor file changes within a specific location on a production server's d:\ drive (d:\filestomonitor), but want to exclude a sub-folder, 'Logs', within it (d:\filestomonitor\Logs). I'm using the following expression:

[filter:blacklist:Logs-blacklist]
regex1 = D:\filestomonitor\.*\Logs\

[fschange:D:\filestomonitor\*]
index=_audit
recurse = true 
followLinks = false 
signedaudit = false 
fullEvent = true 
sendEventMaxSize = 1048576 
delayInMills = 1000 
filters = configs,Logs-blacklist

Could somebody please help provide me with the correct syntax?

Appreciate your help!

0 Karma

HPS478
Explorer
0 Karma
Get Updates on the Splunk Community!

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics GA in US-AWS!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...