Getting Data In

What is the correct syntax to have fschange search multiple directories?

nick085
Engager

Will the following work:

[fschange:C:\Program Files\progam|D:\File\group]

Should replace "|" with "OR",or should i use "&" or "AND". I am trying to monitor file changes to multiple directories using a single fschange statement. I would prefer to not use multiple fschange statements requiring changes to the same attributes for each fschange. If boolean logic cannot be used, is there a way to use a function to define the attributes for fschange?

Tags (1)
1 Solution

bmacias84
Champion

I am sorry, but I dont believe Splunks allows you to perform boolean logic. If you like to use a single fschange entry will most likely have to use File system monitoring filters.


[fschange:/etc]
filters = nothis,dothis
[filter:blacklist:nothis]
regex1 = .*bak
regex2 = .*bk
[filter:whitelist:dothis]
regex1 = .\.c
regex2 = .
\.h

Using FSchange

View solution in original post

0 Karma

bmacias84
Champion

I am sorry, but I dont believe Splunks allows you to perform boolean logic. If you like to use a single fschange entry will most likely have to use File system monitoring filters.


[fschange:/etc]
filters = nothis,dothis
[filter:blacklist:nothis]
regex1 = .*bak
regex2 = .*bk
[filter:whitelist:dothis]
regex1 = .\.c
regex2 = .
\.h

Using FSchange

0 Karma
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.

Can’t make it to .conf25? Join us online!

Get Updates on the Splunk Community!

Community Content Calendar, September edition

Welcome to another insightful post from our Community Content Calendar! We're thrilled to continue bringing ...

Splunkbase Unveils New App Listing Management Public Preview

Splunkbase Unveils New App Listing Management Public PreviewWe're thrilled to announce the public preview of ...

Leveraging Automated Threat Analysis Across the Splunk Ecosystem

Are you leveraging automation to its fullest potential in your threat detection strategy?Our upcoming Security ...