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!

Enhance Security Visibility with Splunk Enterprise Security 7.1 through Threat ...

(view in My Videos)Struggling with alert fatigue, lack of context, and prioritization around security ...

Troubleshooting the OpenTelemetry Collector

  In this tech talk, you’ll learn how to troubleshoot the OpenTelemetry collector - from checking the ...

Adoption of Infrastructure Monitoring at Splunk

  Splunk's Growth Engineering team showcases one of their first Splunk product adoption-Splunk Infrastructure ...