Deployment Architecture

serverclass.conf: Do I need to write separate stanzas, or can I used wildcards to push apps to clients from the deployment server?

splunker12er
Motivator

serverclass.conf

I use the below config to push apps from my deployment server to the clients .
sos - App has been pushed successfully.
TA-* - i have many TA-add-ons in deployment server under the mentioned location. those apps are not pushed. Do i need to write separate stanzas? Or wildcards should work?

[serverClass:SearchHeadCfg]
repositoryLocation = /opt/splunk/etc/apps
whitelist.0 = 10.0.10.101*

[serverClass:SearchHeadCfg:app:sos]
stateOnClient = enabled
restartSplunkd = true

[serverClass:SearchHeadCfg:app:TA-*]
stateOnClient = enabled
restartSplunkd = true
0 Karma

esix_splunk
Splunk Employee
Splunk Employee

You can use wildcards for the whitelists and blacklists. But not for the application (TA) definition. So you have to create a stanza for each TA/app you want to deploy.

But do note, in your example that

whitelist.0 = 10.0.10.101*

Only matches 10.0.10.101.

You can do 10.0.10., or 10.0.10.1, or 10.0.10.10* etc. depending on what wild card matching you want to do. Also note that you can do the same from the GUI, and test your matches there instead of saving and reloading.

Refer to the spec file at : http://docs.splunk.com/Documentation/Splunk/6.2.1/Admin/Serverconf

0 Karma

splunker12er
Motivator

I have verified under the location : /opt/splunk/var/run/tmp/SearchHeadCfg

bundles are not found for TA-addons. Only for sos can be seen

0 Karma
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.
Get Updates on the Splunk Community!

Tech Talk Recap | Mastering Threat Hunting

Mastering Threat HuntingDive into the world of threat hunting, exploring the key differences between ...

Observability for AI Applications: Troubleshooting Latency

If you’re working with proprietary company data, you’re probably going to have a locally hosted LLM or many ...

Splunk AI Assistant for SPL vs. ChatGPT: Which One is Better?

In the age of AI, every tool promises to make our lives easier. From summarizing content to writing code, ...