Getting Data In

How to blacklist specific hosts so Splunk will not index their IIS logs in our "iis" index?

rakeshcse2
New Member

I have an index called "iis".

How can I blacklist some specific hosts so that Splunk would not process iis logs for these hosts?
I did something like this in inputs.conf, but this is not working:

# IIS Logs
[monitor://S:\logs\W3SVC*\*.log]
sourcetype = iis
index = iis
ignoreOlderThan = 30d
disabled = false 
blacklist = Server1,server2
0 Karma

somesoni2
SplunkTrust
SplunkTrust

Does each of your servers have Splunk forwarder installed and they have this monitor stanza to send the logs to your Indexer??

0 Karma

rakeshcse2
New Member

Yes, each of the hosts have the forwarder installed and they are managed by a central server.

0 Karma

yannK
Splunk Employee
Splunk Employee

a blacklist is a regex, so you may want to do :

blacklist = (Server1|Server2)

beware this is also case sensitive.

Get Updates on the Splunk Community!

What's new in Splunk Cloud Platform 9.1.2312?

Hi Splunky people! We are excited to share the newest updates in Splunk Cloud Platform 9.1.2312! Analysts can ...

What’s New in Splunk Security Essentials 3.8.0?

Splunk Security Essentials (SSE) is an app that can amplify the power of your existing Splunk Cloud Platform, ...

Let’s Get You Certified – Vegas-Style at .conf24

Are you ready to level up your Splunk game? Then, let’s get you certified live at .conf24 – our annual user ...