Getting Data In

question about _blacklist

abzmhzsplunk
New Member

Here is the section in my inputs.conf.
It deals with dynamically folder name, the ... could be the folder number name such as 334, the next build it will be 335, etc.
but I want to exclude other folders that fall into the ...
They are
C:\JENKINS\jobs\Smoke_Test\builds\lastUnsuccessfulBuild\log
C:\JENKINS\jobs\Smoke_Test\builds\lastsuccessfulBuild\log
C:\JENKINS\jobs\Smoke_Test\builds\lastStableBuild\log

I tried to modify the _blacklist but couldn't get it work.
Any help?

[monitor://C:\JENKINS\jobs\Smoke_Test\builds...\log]
disabled = false
sourcetype = gatling_log
_blacklist = .(gz)$
index=os
crcSalt =

0 Karma

niketn
Legend

_balcklist is a deprecated command, so try using blacklist instead. In fact if you are aware of all accpeted file type you should define the whitelist instead of blacklist.

In your example please try the following instead:

blacklist = \.txt$
____________________________________________
| makeresults | eval message= "Happy Splunking!!!"
0 Karma
Get Updates on the Splunk Community!

Stay Connected: Your Guide to May Tech Talks, Office Hours, and Webinars!

Take a look below to explore our upcoming Community Office Hours, Tech Talks, and Webinars this month. This ...

They're back! Join the SplunkTrust and MVP at .conf24

With our highly anticipated annual conference, .conf, comes the fez-wearers you can trust! The SplunkTrust, as ...

Enterprise Security Content Update (ESCU) | New Releases

Last month, the Splunk Threat Research Team had two releases of new security content via the Enterprise ...