Deployment Architecture

How do I configure deployment server where I have a main or master server that has apps it pushes to its clients?

tam82
Explorer

How do I configure deployment server where I have a main or master server that has apps it pushes to its clients and will push to a secondary server behind a firewall.   Then that server pushes apps  to its set of clients Clients...

Labels (1)
0 Karma

shivanshu1593
Builder

For a deployment server to push the files to its peers, the app containing those files must lie under $SPLUNK_HOME/etc/deployment-apps. When you deploy an app, it gets installed under $SPLUNK_HONE/etc/apps. Since there's no direct way, you can try the following:

1. Have main DS push the config to the server behind firewall.

2. Write a simple bash script to to copy the app to the $SPLUNK_HOME/etc/deployment -apps directory in the secondary server. That script can be designed to check for the changes in the file and copy again to the deployment -apps, should you push an update from the main DS. You can do this by calculating hash of the app and keep checking it for changes (This is how Splunk does it too, they call it checksum to check for updates on DS for peers)

3. Have your secondary server push the changes to its peers for the first time/everytime there's a change in the app. You can configure this in the script itself to traverse to the /bin directory and run the command splunk reloaddeploy-server -class <<yourclassname>

 

Hope this helps,

**Kindly consider accepting as answer/upvoting if it helped you**

Thank you,
Shiv
###If you found the answer helpful, kindly consider upvoting/accepting it as the answer as it helps other Splunkers find the solutions to similar issues###
0 Karma
Get Updates on the Splunk Community!

Splunk Observability for AI

Don’t miss out on an exciting Tech Talk on Splunk Observability for AI!Discover how Splunk’s agentic AI ...

Splunk Enterprise Security 8.x: The Essential Upgrade for Threat Detection, ...

Watch On Demand the Tech Talk on November 6 at 11AM PT, and empower your SOC to reach new heights! Duration: ...

Splunk Observability as Code: From Zero to Dashboard

For the details on what Self-Service Observability and Observability as Code is, we have some awesome content ...