Getting Data In

How to blacklist data containing specific words

bli_scs
New Member

I have found that there are lots of syslog contains "Log statistics", which is log statistic data of syslog.
Splunk could not parse it well and I do not want to index this data.

How I can blacklist it in the inputs.conf?

0 Karma

amitm05
Builder

@bli_scs

From the inputs.conf we can do the blacklisting at file or directory level. See here -
https://docs.splunk.com/Documentation/SplunkCloud/latest/Data/Whitelistorblacklistspecificincomingda...

However to perform the blacklisting which is event based (on some criteria like in your case that the event contains "Log statistics"), you can use a Heavy Forwarder, which processes both the input phase and the parsing phase before forwarding.
and on your HF, you can define the filtering rule on your props.conf and transforms.conf
For defining a filtering rule, this post can help you -
https://answers.splunk.com/answers/59370/filtering-events-using-nullqueue-1.html

Please accept as answer if this responds to your query.
Thanks

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