Getting Data In

Blacklist in inputs.conf not working as expected

khhenderson
Path Finder

I am attempting to monitor all the log with the word access.
But exclude one particular log file.

Here is my inputs.conf

[monitor:///var/log/nginx/*access*log]
index = nginx
sourcetype = access_combined
disabled = false
blacklist = app.domain.com.access.https.log

Can I specify the log file literally?

0 Karma

MuS
Legend

Hi hkkenderson,

blacklist is using regex to match, therefore you should use \. instead of just .. Try this:

 blacklist = app\.domain\.com\.access\.https\.log

This assues you want to literally match one dot and not just anything one time.

Hope this helps ...

cheers, MuS

0 Karma
Get Updates on the Splunk Community!

Archived Metrics Now Available for APAC and EMEA realms

We’re excited to announce the launch of Archived Metrics in Splunk Infrastructure Monitoring for our customers ...

Detecting Remote Code Executions With the Splunk Threat Research Team

WATCH NOWRemote code execution (RCE) vulnerabilities pose a significant risk to organizations. If exploited, ...

Enter the Dashboard Challenge and Watch the .conf24 Global Broadcast!

The Splunk Community Dashboard Challenge is still happening, and it's not too late to enter for the week of ...