Getting Data In

How come I can't get the Splunk blacklist subfolder to work?

keishamtcs
Explorer

hi,

I am trying to blacklist a subfolder in a particular directory.

The subfolder i am trying to blacklist is app-Status and app-data.

I have used the blacklist as mentioned below but it is not working. How to remove these two folders from logging data?

[monitor:///xxx/jboss/data/log/main/app*/log]
disabled=false
blacklist = ///xxx/jboss/data/log/main/(app-Status|app-data)/log
ignoreOlderThan = 24h
_TCP_ROUTING=xyz
sourcetype=abc
index=xxxxxx
0 Karma

FrankVl
Ultra Champion

Or just simply blacklist = (app-Status|app-data). The regex doesn't have to match the full path.

0 Karma

jbrocks
Communicator
blacklist = /xxx/jboss/data/log/main/app-data/log/* | /xxx/jboss/data/log/main/app-Status/log/*
0 Karma

keishamtcs
Explorer

hi

it is not working. i also tried -

blacklist = ///xxx/jboss/data/log/main/app-data/log/*
blacklist = xxx/jboss/data/log/main/app-data/log/*

0 Karma

jbrocks
Communicator

Did you try with one slash?
blacklist = /xxx/jboss/data/log/main/app-data/log/*

0 Karma

keishamtcs
Explorer

Hi,

i tried like the below syntax and it is working. Thanks for your input.
blacklist = //xxx/jboss/data/log/main/app-data/log/

0 Karma
Get Updates on the Splunk Community!

Shape the Future of Splunk: Join the Product Research Lab!

Join the Splunk Product Research Lab and connect with us in the Slack channel #product-research-lab to get ...

Auto-Injector for Everything Else: Making OpenTelemetry Truly Universal

You might have seen Splunk’s recent announcement about donating the OpenTelemetry Injector to the ...

[Puzzles] Solve, Learn, Repeat: Character substitutions with Regular Expressions

This challenge was first posted on Slack #puzzles channelFor BORE at .conf23, we had a puzzle question which ...