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!

Aligning Observability Costs with Business Value: Practical Strategies

 Join us for an engaging Tech Talk on Aligning Observability Costs with Business Value: Practical ...

Mastering Data Pipelines: Unlocking Value with Splunk

 In today's AI-driven world, organizations must balance the challenges of managing the explosion of data with ...

Splunk Up Your Game: Why It's Time to Embrace Python 3.9+ and OpenSSL 3.0

Did you know that for Splunk Enterprise 9.4, Python 3.9 is the default interpreter? This shift is not just a ...