Getting Data In

Is there a way to use an external list file to whitelist or blacklist hosts in serverclass.conf?

Susannajuurinen
Explorer

Is there a way to use external lists with whitelist filtering? For example if I had systems A and B with several hosts, could I create a list like hosts.txt and then refer to that list and its content? Something like below:

whitelist.0 = hosts.txt systemB

hosts.txt
[systemA]
host1
host2

[systemB]
host3
host4

Thanks for any help!

0 Karma

regriffith
Path Finder

I use this for managing a large number of hosts. In one case I temporarily used it with up to a nine thousand host entries.

Entry in the serverclass.conf

[serverClass:specific_host]
whitelist.from_pathname = etc/system/local/host.txt
restartSplunkd = 1

lguinn2
Legend

AFAIK, you can't do that for serverclass.conf

0 Karma

Susannajuurinen
Explorer

Thanks Lisa,

Do you know if that kind of a feature is added to Splunk in the future? It would make managing the serverclass.conf (and other confs too) a lot more easier if hosts could be centrally grouped.

0 Karma
Get Updates on the Splunk Community!

Technical Workshop Series: Splunk Data Management and SPL2 | Register here!

Hey, Splunk Community! Ready to take your data management skills to the next level? Join us for a 3-part ...

Spotting Financial Fraud in the Haystack: A Guide to Behavioral Analytics with Splunk

In today's digital financial ecosystem, security teams face an unprecedented challenge. The sheer volume of ...

Solve Problems Faster with New, Smarter AI and Integrations in Splunk Observability

Solve Problems Faster with New, Smarter AI and Integrations in Splunk Observability As businesses scale ...