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!

Welcome to the Splunk Community!

(view in My Videos) We're so glad you're here! The Splunk Community is place to connect, learn, give back, and ...

Tech Talk | Elevating Digital Service Excellence: The Synergy of Splunk RUM & APM

Elevating Digital Service Excellence: The Synergy of Real User Monitoring and Application Performance ...

Adoption of RUM and APM at Splunk

    Unleash the power of Splunk Observability   Watch Now In this can't miss Tech Talk! The Splunk Growth ...