Splunk Enterprise

how to push apps from DS to CM ?

vikasg
Loves-to-Learn Lots

Hello Experts , 

I have never done this and wonder if there is a best way to achieve below 

I want to use DS to push intial configurations from DS to CM and then use CM as porxy for IDX cluster .  I tried below 

1) added CM as client and for the serverclass I have added 'stateOnClient = noop' to each of the app entries just to make sure those application does not work locally no the CM 

2) after above step confs lands on cm under /opt/splunk/etc/apps ,however I want them to land to /opt/splukn/etc/master-apps

question is can DS put the directories in a diffferent locations than default that is /opt/splunk/etc/apps

Labels (3)
0 Karma

livehybrid
SplunkTrust
SplunkTrust

Hi @vikasg 

It’s possible to do this by setting the repositoryLocation value in deploymentclient.conf however in terms of supportability and recommendations…well.. I’m not sure you’ll get much positive encouragement to do this as it’s not really recommended. This approach may also break the UI editing capability for managing clients because the UI is not built to manage this setting. 

repositoryLocation = $SPLUNK_HOME/etc/apps
* The location where content installs when downloaded from a deployment server.
* For the Splunk platform instance on the deployment client to recognize an app
  or configuration content, install the app or content in the default location:
  $SPLUNK_HOME/etc/apps.
    * NOTE: Apps and configuration content for deployment can be in other
      locations on the deployment server. Set both 'repositoryLocation' and
      'serverRepositoryLocationPolicy' explicitly to ensure that the content
      installs on the deployment client in the correct location, which is
      $SPLUNK_HOME/etc/apps.
    * The deployment client uses the following 'serverRepositoryLocationPolicy'
      to determine the value of 'repositoryLocation'.

Check out https://docs.splunk.com/Documentation/Splunk/9.4.2/Admin/Deploymentclientconf docs for more info. 

 

🌟 Did this answer help you? If so, please consider:

    • Adding karma to show it was useful
    • Marking it as the solution if it resolved your issue
    • Commenting if you need any clarification

Your feedback encourages the volunteers in this community to continue contributing.

0 Karma

vikasg
Loves-to-Learn Lots

@livehybrid  Thank you for the quick response . Let me a give a shot on this will keep posted here how it goes . 

0 Karma

PickleRick
SplunkTrust
SplunkTrust

Yes, it is possible exactly that way @livehybrid described. But you still have to manually log in to CM and validate the bundle and push it so it doesn't save you much work (and makes the process... less obvious)

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!

[Puzzles] Solve, Learn, Repeat: Matching cron expressions

This puzzle (first published here) is based on matching timestamps to cron expressions.All the timestamps ...

Design, Compete, Win: Submit Your Best Splunk Dashboards for a .conf26 Pass

Hello Splunkers,  We’re excited to kick off a Splunk Dashboard contest! We know that dashboards are a primary ...

May 2026 Splunk Expert Sessions: Security & Observability

Level Up Your Operations: May 2026 Splunk Expert Sessions Whether you are refining your security posture or ...