<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Deployment Server - reload configs without restarting splunk in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Deployment-Server-reload-configs-without-restarting-splunk/m-p/124427#M25646</link>
    <description>&lt;P&gt;Bingo. We have success.&lt;BR /&gt;
Thanks Peoples..   &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 24 Jan 2014 05:17:49 GMT</pubDate>
    <dc:creator>tollops</dc:creator>
    <dc:date>2014-01-24T05:17:49Z</dc:date>
    <item>
      <title>Deployment Server - reload configs without restarting splunk?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Deployment-Server-reload-configs-without-restarting-splunk/m-p/124423#M25642</link>
      <description>&lt;P&gt;Hi;&lt;/P&gt;
&lt;P&gt;We are currently setting up multiple new forwarders, which are getting their configs from the deployment server.&lt;/P&gt;
&lt;P&gt;Everytime, we setup a new app or modify an existing app we are having to restart splunk.&lt;/P&gt;
&lt;P&gt;Is there an easier way to re-initialise the Deployment Server to refresh the /opt/splunk/var/run/tmp/ sub-folders without having to do a "service restart splunk"&lt;/P&gt;
&lt;P&gt;Trevor..&lt;/P&gt;</description>
      <pubDate>Fri, 30 Jun 2023 15:54:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Deployment-Server-reload-configs-without-restarting-splunk/m-p/124423#M25642</guid>
      <dc:creator>tollops</dc:creator>
      <dc:date>2023-06-30T15:54:46Z</dc:date>
    </item>
    <item>
      <title>Re: Deployment Server - reload configs without restarting splunk</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Deployment-Server-reload-configs-without-restarting-splunk/m-p/124424#M25643</link>
      <description>&lt;P&gt;According to &lt;A href="http://wiki.splunk.com/Deploy:DeploymentServer"&gt;http://wiki.splunk.com/Deploy:DeploymentServer&lt;/A&gt; it is $SPLUNK_HOME/bin/splunk reload deploy-server &lt;/P&gt;

&lt;P&gt;There is other information there but I think that answers you question.&lt;/P&gt;</description>
      <pubDate>Fri, 24 Jan 2014 03:46:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Deployment-Server-reload-configs-without-restarting-splunk/m-p/124424#M25643</guid>
      <dc:creator>tyronetv</dc:creator>
      <dc:date>2014-01-24T03:46:29Z</dc:date>
    </item>
    <item>
      <title>Re: Deployment Server - reload configs without restarting splunk</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Deployment-Server-reload-configs-without-restarting-splunk/m-p/124425#M25644</link>
      <description>&lt;P&gt;Should be able to reload the configs by accessing &lt;A href="http://yoursplunkinstance/en-US/debug/refresh"&gt;http://yoursplunkinstance/en-US/debug/refresh&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 24 Jan 2014 03:55:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Deployment-Server-reload-configs-without-restarting-splunk/m-p/124425#M25644</guid>
      <dc:creator>joshd</dc:creator>
      <dc:date>2014-01-24T03:55:54Z</dc:date>
    </item>
    <item>
      <title>Re: Deployment Server - reload configs without restarting splunk</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Deployment-Server-reload-configs-without-restarting-splunk/m-p/124426#M25645</link>
      <description>&lt;P&gt;Big fan of &lt;CODE&gt;reload deploy-server&lt;/CODE&gt; myself.&lt;/P&gt;</description>
      <pubDate>Fri, 24 Jan 2014 04:06:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Deployment-Server-reload-configs-without-restarting-splunk/m-p/124426#M25645</guid>
      <dc:creator>lukejadamec</dc:creator>
      <dc:date>2014-01-24T04:06:21Z</dc:date>
    </item>
    <item>
      <title>Re: Deployment Server - reload configs without restarting splunk</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Deployment-Server-reload-configs-without-restarting-splunk/m-p/124427#M25646</link>
      <description>&lt;P&gt;Bingo. We have success.&lt;BR /&gt;
Thanks Peoples..   &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 24 Jan 2014 05:17:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Deployment-Server-reload-configs-without-restarting-splunk/m-p/124427#M25646</guid>
      <dc:creator>tollops</dc:creator>
      <dc:date>2014-01-24T05:17:49Z</dc:date>
    </item>
    <item>
      <title>Re: Deployment Server - reload configs without restarting splunk</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Deployment-Server-reload-configs-without-restarting-splunk/m-p/124428#M25647</link>
      <description>&lt;P&gt;Great, help out and accept the right answer or post a better one.&lt;/P&gt;</description>
      <pubDate>Fri, 24 Jan 2014 05:24:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Deployment-Server-reload-configs-without-restarting-splunk/m-p/124428#M25647</guid>
      <dc:creator>lukejadamec</dc:creator>
      <dc:date>2014-01-24T05:24:06Z</dc:date>
    </item>
    <item>
      <title>Re: Deployment Server - reload configs without restarting splunk</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Deployment-Server-reload-configs-without-restarting-splunk/m-p/124429#M25648</link>
      <description>&lt;P&gt;that takes longer time, and it reloads a bunch of other stuff. I think it's generally better suited for reloading props/transforms stuff that would normally require a restart.&lt;/P&gt;</description>
      <pubDate>Fri, 24 Jan 2014 07:18:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Deployment-Server-reload-configs-without-restarting-splunk/m-p/124429#M25648</guid>
      <dc:creator>kristian_kolb</dc:creator>
      <dc:date>2014-01-24T07:18:52Z</dc:date>
    </item>
    <item>
      <title>Re: Deployment Server - reload configs without restarting splunk</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Deployment-Server-reload-configs-without-restarting-splunk/m-p/124430#M25649</link>
      <description>&lt;P&gt;I have a dummy app that I push when I want to make changes.  Just add that app and next check in all updated apps get pushed.&lt;/P&gt;</description>
      <pubDate>Mon, 18 Jan 2016 22:04:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Deployment-Server-reload-configs-without-restarting-splunk/m-p/124430#M25649</guid>
      <dc:creator>kskujawa</dc:creator>
      <dc:date>2016-01-18T22:04:09Z</dc:date>
    </item>
    <item>
      <title>Re: Deployment Server - reload configs without restarting splunk</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Deployment-Server-reload-configs-without-restarting-splunk/m-p/124431#M25650</link>
      <description>&lt;P&gt;Can anyone second that this is the endpoint for the command? &lt;/P&gt;

&lt;P&gt;/services/deployment/client/config/reload -X POST&lt;/P&gt;</description>
      <pubDate>Tue, 19 Jul 2016 22:24:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Deployment-Server-reload-configs-without-restarting-splunk/m-p/124431#M25650</guid>
      <dc:creator>ben_leung</dc:creator>
      <dc:date>2016-07-19T22:24:36Z</dc:date>
    </item>
    <item>
      <title>Re: Deployment Server - reload configs without restarting splunk</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Deployment-Server-reload-configs-without-restarting-splunk/m-p/124432#M25651</link>
      <description>&lt;P&gt;If you are getting this error&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;An error occurred: Could not create Splunk settings directory at '/root/.splunk'
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Then make sure you run the process as the user you typically run splunk from. splunk in my case.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;sudo su splunk
[splunk@servername5001 /opt/splunk/etc](603)
$ /opt/splunk/bin/splunk reload deploy-server
Your session is invalid.  Please login.
Splunk username: admin
Password: 
Login successful, running command...
Reloading serverclass(es).
[splunk@servername /opt/splunk/etc](604)
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 30 May 2017 17:47:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Deployment-Server-reload-configs-without-restarting-splunk/m-p/124432#M25651</guid>
      <dc:creator>mlconnor</dc:creator>
      <dc:date>2017-05-30T17:47:37Z</dc:date>
    </item>
    <item>
      <title>Re: Deployment Server - reload configs without restarting splunk</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Deployment-Server-reload-configs-without-restarting-splunk/m-p/124433#M25652</link>
      <description>&lt;P&gt;For larger deployments, I think it's better to use the -class switch&lt;BR /&gt;
${SPLUNK_HOME}/bin/splunk reload deploy-server -class &lt;/P&gt;</description>
      <pubDate>Wed, 14 Feb 2018 04:17:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Deployment-Server-reload-configs-without-restarting-splunk/m-p/124433#M25652</guid>
      <dc:creator>matthewpearce</dc:creator>
      <dc:date>2018-02-14T04:17:41Z</dc:date>
    </item>
    <item>
      <title>Re: Deployment Server - reload configs without restarting splunk</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Deployment-Server-reload-configs-without-restarting-splunk/m-p/124434#M25653</link>
      <description>&lt;P&gt;You might want to look at &lt;A href="https://splunkbase.splunk.com/app/2775/"&gt;https://splunkbase.splunk.com/app/2775/&lt;/A&gt;&lt;BR /&gt;
it has a relod deploy server as well as restart forwarder feature.&lt;/P&gt;</description>
      <pubDate>Thu, 11 Oct 2018 15:14:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Deployment-Server-reload-configs-without-restarting-splunk/m-p/124434#M25653</guid>
      <dc:creator>dominiquevocat</dc:creator>
      <dc:date>2018-10-11T15:14:14Z</dc:date>
    </item>
    <item>
      <title>Re: Deployment Server - reload configs without restarting splunk</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Deployment-Server-reload-configs-without-restarting-splunk/m-p/124435#M25654</link>
      <description>&lt;P&gt;Yes , You can create a server class for restart . Add the restart app and clients for it.&lt;BR /&gt;
It will work like smooth&lt;/P&gt;</description>
      <pubDate>Thu, 11 Oct 2018 15:24:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Deployment-Server-reload-configs-without-restarting-splunk/m-p/124435#M25654</guid>
      <dc:creator>iamarkaprabha</dc:creator>
      <dc:date>2018-10-11T15:24:34Z</dc:date>
    </item>
    <item>
      <title>Re: Deployment Server - reload configs without restarting splunk</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Deployment-Server-reload-configs-without-restarting-splunk/m-p/504213#M85965</link>
      <description>&lt;P&gt;This helped me a lot. Thank You!&lt;/P&gt;</description>
      <pubDate>Fri, 12 Jun 2020 17:18:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Deployment-Server-reload-configs-without-restarting-splunk/m-p/504213#M85965</guid>
      <dc:creator>rahulkumar02</dc:creator>
      <dc:date>2020-06-12T17:18:23Z</dc:date>
    </item>
    <item>
      <title>Re: Deployment Server - reload configs without restarting splunk</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Deployment-Server-reload-configs-without-restarting-splunk/m-p/648681#M110258</link>
      <description>&lt;P&gt;I realise this post is 6 years old, but it still helped me.&lt;/P&gt;&lt;P&gt;Just to add something that might be useful:&lt;/P&gt;&lt;P&gt;When it asks for the Splunk username, this isn't a Linux user account, it's an application user account on the Deployment Server. It's confusing because many other Splunk commands can be run by Linux user accounts, but it seems not the 'deploy-server reload' command.&lt;/P&gt;&lt;PRE&gt;$ /opt/splunk/bin/splunk reload deploy-server
Your session is invalid.  Please login.
Splunk username: admin&lt;/PRE&gt;&lt;P&gt;Also, you can append '-class [serverclass name] onto the end of the command and only changes made to the corresponding deployment apps will get reloaded, so this is perhaps a safer option if you're nervous about reloading everything.&lt;/P&gt;</description>
      <pubDate>Thu, 29 Jun 2023 16:13:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Deployment-Server-reload-configs-without-restarting-splunk/m-p/648681#M110258</guid>
      <dc:creator>BG</dc:creator>
      <dc:date>2023-06-29T16:13:57Z</dc:date>
    </item>
    <item>
      <title>Re: Deployment Server - reload configs without restarting splunk</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Deployment-Server-reload-configs-without-restarting-splunk/m-p/706541#M116840</link>
      <description>&lt;P&gt;You can use below code to reload DS&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;from splunklib.binding import HTTPError
import splunk.clilib.cli_common as scc

def trigger_reload_deploy_server(self, sc=None):
    """Triggers the 'reload deploy-server' command via the Splunk REST API."""
    try:
        # Trigger the 'reload deploy-server' command using the REST API
        log("INFO","Triggering 'reload deploy-server' command.",file_name="getdiaginfo")
        splunkd_uri = scc.getMgmtUri()
        session_key = self.service.token
        
        endpoint = splunkd_uri + "/services/deployment/server/config/_reload"
        headers = {"Authorization": f"Splunk {session_key}", "Content-Type": "application/json"}
        
        # Prepare the request body
        if not sc:
            body = ''
        else:
            body = urllib.parse.urlencode({"serverclass": sc})
        update_response = requests.post(endpoint, headers=headers, data=body, verify=False)
 
        if update_response.status_code == 200:
            log("INFO", "--&amp;gt; 'reload deploy-server' command triggered successfully.", file_name="getdiaginfo")
            return True
        else:
            log("ERROR", f"Failed to trigger 'reload deploy-server'. Status: {update_response.status_code}, Response: {update_response.text}", file_name="getdiaginfo")
            return False
        
    except HTTPError as e:
        log("ERROR",f"Failed to trigger 'reload deploy-server': {e}",file_name="getdiaginfo")
        return False

@Configuration()
class Getdiaginfo(GeneratingCommand):
    server_list = Option(require=False)
    def generate(self):
        trigger_reload_deploy_server(self, &amp;lt;"serverclass-name"&amp;gt;)

dispatch(Getdiaginfo, sys.argv, sys.stdin, sys.stdout, __name__)&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 11 Dec 2024 14:05:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Deployment-Server-reload-configs-without-restarting-splunk/m-p/706541#M116840</guid>
      <dc:creator>RaviNandasana0</dc:creator>
      <dc:date>2024-12-11T14:05:18Z</dc:date>
    </item>
    <item>
      <title>Re: Deployment Server - reload configs without restarting splunk</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Deployment-Server-reload-configs-without-restarting-splunk/m-p/706591#M116843</link>
      <description>Another app in splunkbase for this &lt;A href="https://splunkbase.splunk.com/app/7339" target="_blank"&gt;https://splunkbase.splunk.com/app/7339&lt;/A&gt;</description>
      <pubDate>Wed, 11 Dec 2024 21:29:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Deployment-Server-reload-configs-without-restarting-splunk/m-p/706591#M116843</guid>
      <dc:creator>isoutamo</dc:creator>
      <dc:date>2024-12-11T21:29:39Z</dc:date>
    </item>
  </channel>
</rss>

