Getting Data In

How to blacklist inputs.conf with multiple files or folders?

cxnsalvi
Engager

Hello,

Below is the existing stanza in the inputs.conf

[monitor:///var/log]
whitelist=(\.log|log$|messages|secure|auth|mesg$|cron$|acpid$|\.out)
blacklist=(lastlog|anaconda\.syslog)
disabled = 1

I also want to add the following folder to be blacklist

/var/log/dynatrace and any logs within the folder/sub folders.

Can you please explain how this can be done?

Is the syntax below correct?

blacklist=(lastlog|anaconda\.syslog)|(dynatrace)

Appreciate your experience and help.

Labels (2)
0 Karma
Get Updates on the Splunk Community!

Splunk at Cisco Live 2025: Learning, Innovation, and a Little Bit of Mr. Brightside

Pack your bags (and maybe your dancing shoes)—Cisco Live is heading to San Diego, June 8–12, 2025, and Splunk ...

Splunk App Dev Community Updates – What’s New and What’s Next

Welcome to your go-to roundup of everything happening in the Splunk App Dev Community! Whether you're building ...

The Latest Cisco Integrations With Splunk Platform!

Join us for an exciting tech talk where we’ll explore the latest integrations in Cisco + Splunk! We’ve ...