Getting Data In

How do you blacklist within inputs.conf?

vinaykata
Path Finder

Hi all,

What's the exact way we can use blacklist in the inputs.conf file? Below is my example, and I am not sure if I should use regex or the path directly.

[monitor://C:\Program Files\Splunk*\etc...*.conf]
disabled = false
sourcetype = Conf
blacklist://C:\Program Files\Splunk*\etc...\app.conf

this stanza is to index all the Splunk config files. But I wanted to ignore the app.conf file under the same path. And also what's the correct format to use a second blacklist for another path?

Thank you all.

Tags (2)
0 Karma

ddrillic
Ultra Champion

The blacklist configuration actually points to a regular expression so the following should work -

blacklist = C:\\Program Files\\Splunk.*\\etc.*\\app\.conf

@DalJeanis spoke about it at Unable to blacklist multiple patterns using "|" in inputs.conf ?

It shows there how to use multiple regular expressions using the | sign.

0 Karma
Get Updates on the Splunk Community!

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

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...