Getting Data In

How to blacklist two different hosts in inputs.conf?

Hemnaath
Motivator

Hi All, Can any one guide me on how to blacklist two different host in the same inputs.conf files in Heavy Forwarder (HF) instance?

Currently we have the below inputs.conf set and in which we have already blacklisted a host but I want to add another host along with the below host, so that the logs from this host are not indexed in the same indexer.

example: want to blacklist sep01 logs from this path /opt/syslogs/generic/sep01/Sep01.log in the below inputs.conf

[monitor:///opt/syslogs/generic/.../*.log]
sourcetype = syslog
host_segment = 4
blacklist = dxx*lxx*
index=unix_svrs

Kindly guide me on this to fix this problem.

thanks in advance.

0 Karma

richgalloway
SplunkTrust
SplunkTrust

The blacklist attribute takes a regular expression so you could try something like

blacklist = (dxx*lxx|.*\/sep01\/)
---
If this reply helps you, Karma would be appreciated.
Get Updates on the Splunk Community!

Stay Connected: Your Guide to May Tech Talks, Office Hours, and Webinars!

Take a look below to explore our upcoming Community Office Hours, Tech Talks, and Webinars this month. This ...

They're back! Join the SplunkTrust and MVP at .conf24

With our highly anticipated annual conference, .conf, comes the fez-wearers you can trust! The SplunkTrust, as ...

Enterprise Security Content Update (ESCU) | New Releases

Last month, the Splunk Threat Research Team had two releases of new security content via the Enterprise ...