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!

Webinar Recap | Revolutionizing IT Operations: The Transformative Power of AI and ML ...

The Transformative Power of AI and ML in Enhancing Observability   In the realm of IT operations, the ...

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...