Splunk Search

IP based black list in Serverclass.conf does not work

habeebkaradan
New Member

Hi,
I am trying to push app based on IP subnet whitelist and blacklist, while whitelist subnets are working perfectly alright, whatever put with blacklist. is not working as expected, because I can see application is getting deployed to subnets in blacklist as well. Here is the configuration

===================================
[serverClass:PROD_IP_RANGE]
machineTypesFilter = windows-x64
blacklist.0 = ^10.50.100.\d+$
whitelist.0 = ^10.50.\d+.\d+$

[serverClass:PROD_IP_RANGE:app:TestApp]
restartSplunkWeb = 0
restartSplunkd = 1
stateOnClient = enabled

==============================

expected behaviour is TestApp should get deployed to all Windows hosts in 10.50.0.0/16 subnets except hosts in 10.50.100.0/24, but I can see app gets deployed to hosts in 10.50.100.0/24 subnet as well

0 Karma

richgalloway
SplunkTrust
SplunkTrust

The whitelist and blacklist attributes use patterns in their values rather than regular expressions. Try

blacklist.0 = 10.50.100.*
whitelist.0 = 10.50.*
---
If this reply helps you, Karma would be appreciated.
0 Karma
Get Updates on the Splunk Community!

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

Splunk is officially part of Cisco

Revolutionizing how our customers build resilience across their entire digital footprint.   Splunk ...

Splunk APM & RUM | Planned Maintenance March 26 - March 28, 2024

There will be planned maintenance for Splunk APM and RUM between March 26, 2024 and March 28, 2024 as ...