Deployment Architecture

Blacklist IP Ranges in serverclass.conf

trross33
Path Finder

Is it possible to blacklist ip ranges in serverclass.conf? Something like this?

[serverClass:test-type]
machineTypes=windows-intel, linux-i686, linux-x86_64
filterType=whitelist
whitelist.0=*
blacklist.0=192.168.1.130-192.168.1.149

Thanks!

0 Karma

Ayn
Legend

No, ranges or CIDR defined blocks are not supported in the blacklists/whitelists. However the patterns are really PCRE regular expressions, so there's the option of using that, for instance like this (using your example scenario):

[serverClass:test-type]
machineTypes=windows-intel, linux-i686, linux-x86_64
filterType=whitelist
whitelist.0=*
blacklist.0=192.168.1.1[34][0-9]
Get Updates on the Splunk Community!

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 ...

New in Observability Cloud - Explicit Bucket Histograms

Splunk introduces native support for histograms as a metric data type within Observability Cloud with Explicit ...