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!

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...