Getting Data In

How to Blacklist a hostname in inputs.conf?

anandhalagarasa
Path Finder

Hi Team,

In our environment, We have all apps in our deployment server and from there we used to deploy it so that it will reach all our indexers.

Currently, we have an app in our deployment server and in that we have inputs.conf (/opt/splunk/etc/deployment-apps/appname/local/inputs.conf) and in that we want to blacklist a server in inputs.conf

This is the sample like Inputs.conf file:

[monitor:///xx/xx/Xxx/xxxx/xxxx.*]
sourcetype = xxxxxx
blacklist = (servername)
index = xxxx
disabled = 0

So in this stanza I have mentioned the servername under blacklist= (servername) but still the logs are getting ingested into Splunk for those index and sourcetype. So how to blacklist the server in inputs.conf

So kindly let me know how to fix the same.

0 Karma

ansif
Motivator

Hi @anandhalagarasan:

Create separate app for this input and dont deploy it to that server (as mentioned by @teunlaan)

0 Karma

teunlaan
Contributor

you should blacklist it in your serverclass, so you don't deploy it too the server.

0 Karma
Get Updates on the Splunk Community!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

March 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...