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!

SOC4Kafka - New Kafka Connector Powered by OpenTelemetry

The new SOC4Kafka connector, built on OpenTelemetry, enables the collection of Kafka messages and forwards ...

Your Voice Matters! Help Us Shape the New Splunk Lantern Experience

Splunk Lantern is a Splunk customer success center that provides advice from Splunk experts on valuable data ...

Building Momentum: Splunk Developer Program at .conf25

At Splunk, developers are at the heart of innovation. That’s why this year at .conf25, we officially launched ...