Deployment Architecture

Automating the Deployment Server

Navarro
Engager

I am aware that it is pretty simple to programmatically add new apps to Splunk's Deployment Server, as you must simply drop them in the right directory and invoke a reload of the service.

For server classes however, this does not seem so trivial.  The official documentation asks us to add apps to a server class manually, from the user interface.  This I don't like much as it is error prone and non reproducible.

Is there any way (or magic location in the Deployment Server's filesystem, like for the apps), where I can drop the configuration of a server class, for it to be loaded in the graphical UI automatically?  This will allow me to configure some simple Ansible/Puppet/Chef... task to take care of those files.

Labels (1)
Tags (1)
0 Karma
1 Solution

PaulPanther
Motivator

If I understand your question correct one way could be to edit the serverclass.conf directly as described in Deploy apps to clients - Splunk Documentation

View solution in original post

gcusello
SplunkTrust
SplunkTrust

Hi @Navarro,

I'm not sure that you can reload serverclasses.conf file without restarting Splunk on the Deployment Server, you can change apps but not conf files.

Anyway, I don't like to modify conf files by program because you need to restart Splunk and you have the risk to loose control on your deployment.

My hint is alway to design your deployment on paper (or Excel) and use the GUi interface to apply them.

I found a customer that used to modify ServerClasses only by SSH, but always manually, not by program and it was a very singular situation for the competence and the mental order of the user.

In few words, this customer had a very complex distributedd architecture so this use manually modified the serverclasses.conf file adding rows and rows of information in the conf file itself, 

In conclusion I don't hint to follow your approach, but you have to choose your own best approach.

Ciao.

Giuseppe

0 Karma

PaulPanther
Motivator

If I understand your question correct one way could be to edit the serverclass.conf directly as described in Deploy apps to clients - Splunk Documentation

Navarro
Engager

I missed that particular paragraph completely!  Thank you!

0 Karma
Got questions? Get answers!

Join the Splunk Community Slack to learn, troubleshoot, and make connections with fellow Splunk practitioners in real time!

Meet up IRL or virtually!

Join Splunk User Groups to connect and learn in-person by region or remotely by topic or industry.

Get Updates on the Splunk Community!

Observability Simplified: Combining User Experience, Application Performance & ...

Tech Talk Observability Simplified: Combining User Experience, Application Performance & Network ...

Event Series May & June: From Network Visibility to Service Intelligence

Unifying the Network: Moving from Alert Noise to Service Intelligence with Splunk ITSI In today’s hybrid ...

Global Splunk User Group Events: May + June 2026

Your Splunk Community Awaits: Discover Upcoming User Group Events Worldwide    Staying ahead in the fast-paced ...