Getting Data In

Problem blacklisting single subdirectory

benme
Engager

I have universal forwarder 4.2.4 installed on a Windows 2008 server. I have it monitoring several directories, but I want to blacklist a single subdirectory, so all files in that subdirectory are ignored. I've tried the following in the inputs.conf file, but files in the subdirectory continue to be processed.

[monitor:///$WINDIR\MyDirectory]
blacklist = MySubDirectory

[monitor:///$WINDIR\MyDirectory]
blacklist = \MySubDirectory

[monitor:///$WINDIR\MyDirectory]
blacklist = \MySubDirectory\

[monitor:///$WINDIR\MyDirectory]
blacklist = \MySubDirectory\*

[monitor:///$WINDIR\MyDirectory]
blacklist = \\MySubDirectory

[monitor:///$WINDIR\MyDirectory]
blacklist = \\MySubDirectory\\

[monitor:///$WINDIR\MyDirectory]
blacklist = \\MySubDirectory\\*

[monitor:///$WINDIR\MyDirectory]
blacklist = /MySubDirectory

[monitor:///$WINDIR\MyDirectory]
blacklist = /MySubDirectory/

[monitor:///$WINDIR\MyDirectory]
blacklist = /MySubDirectory/*

and several other variations. I'm sure I'm missing something obvious. Thanks for the help.

0 Karma
1 Solution

benme
Engager

I ended up uninstalling and reinstalling universal forwarder. After that blacklist worked properly.

View solution in original post

0 Karma

benme
Engager

I ended up uninstalling and reinstalling universal forwarder. After that blacklist worked properly.

0 Karma

gkanapathy
Splunk Employee
Splunk Employee

Since this is presumably on Windows/NTFS, try to make your blacklist case-insensitive:

blacklist = (?i)mysubdirectory

_d_
Splunk Employee
Splunk Employee

benme,

Are you sure you have not already indexed the directory prior to putting the blacklist in place? Splunk will keep the data in even if you later decide to blacklist the directory.

Hope this helps.

> please upvote and accept answer if you find it useful - thanks!

0 Karma

_d_
Splunk Employee
Splunk Employee

Did you try restarting the Universal Forwarder?

0 Karma
Get Updates on the Splunk Community!

Join Us for Splunk University and Get Your Bootcamp Game On!

If you know, you know! Splunk University is the vibe this summer so register today for bootcamps galore ...

.conf24 | Learning Tracks for Security, Observability, Platform, and Developers!

.conf24 is taking place at The Venetian in Las Vegas from June 11 - 14. Continue reading to learn about the ...

Announcing Scheduled Export GA for Dashboard Studio

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