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!

Detecting Remote Code Executions With the Splunk Threat Research Team

REGISTER NOWRemote code execution (RCE) vulnerabilities pose a significant risk to organizations. If ...

Observability | Use Synthetic Monitoring for Website Metadata Verification

If you are on Splunk Observability Cloud, you may already have Synthetic Monitoringin your observability ...

More Ways To Control Your Costs With Archived Metrics | Register for Tech Talk

Tuesday, May 14, 2024  |  11AM PT / 2PM ET Register to Attend Join us for this Tech Talk and learn how to ...