Getting Data In

custom Blacklist not working correctly

sushildabare
Path Finder

Trying to make a custom blacklist for one of my input monitor points that excludes certain directories and filetypes


[monitor:///usr/sap/IX4/DVEBMGS26/work]
disabled = false
blacklist = \VM*.$
blacklist = \vm
.$
blacklist = (logs|jtmp)$
blacklist = *.(CPIC|old|trc|dump|DAT|CSV|sql)$
blacklist = \Y_
.*$

[monitor:///sapdb/data/wrk/IX4/knltrace]
disabled = false

[monitor:///sapdb/data/wrk/IX4/dbm.prt]
disabled = false

[monitor:///sapdb/data/wrk/IX4/KnlMsg]
disabled = false


But still files VM*.* and directory logs is not getting blacklisted. Can you please chck if syntax is correct?

Thanks & regards,
Kratika

Tags (1)
0 Karma

jlaw
Splunk Employee
Splunk Employee

In this topic in the docs:

http://docs.splunk.com/Documentation/Splunk/latest/Data/Whitelistorblacklistspecificincomingdata

there's a note: "Important: If you create a blacklist line for each file you want to ignore, Splunk activates only the last filter."

So it sounds like you need to combine your five lines into one in the [monitor:///usr/sap/IX4/DVEBMGS26/work] stanza.

Get Updates on the Splunk Community!

.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 ...

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...