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!

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics GA in US-AWS!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...