<?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: How to configure all forwarders from an old deployment server to a new deployment server? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-to-configure-all-forwarders-from-an-old-deployment-server-to/m-p/205163#M40494</link>
    <description>&lt;P&gt;You can... but it's ugly and error-prone.&lt;/P&gt;

&lt;P&gt;The problem with deploying a deploymentclient.conf in an application is that the settings there are overridden by etc/system/local/deploymentclient.conf.  So if you can change that (system/local) file, you're in business.&lt;/P&gt;

&lt;P&gt;Ansible, Chef, Salt, Puppet, etc. are tools to change the file on the system, which is useful if they are already there, and you are allowed to make a change in the CM tool or can find a sysadmin long enough to explain what you need.&lt;/P&gt;

&lt;P&gt;But you have Splunk on the system already, and we can do it in Splunk as a Splunk admin.&lt;/P&gt;

&lt;P&gt;1) Create a deploy-client-config app in Splunk.  You need 3 things in it (in addition to what comes out of the Blank application template):  &lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;bin/remove_deploy_system_setting.[bat|py], a script that (re)moves    $SPLUNK_HOME/etc/system/local/deploymentclient.conf and restarts splunk&lt;/LI&gt;
&lt;LI&gt;default/inputs.conf that runs the above script every... say 5 minutes&lt;/LI&gt;
&lt;LI&gt;default/deploymentclient.conf that points at the new DS&lt;/LI&gt;
&lt;/UL&gt;

&lt;P&gt;2) Use the old deployment server to push this out to everybody (restart splunk after)&lt;BR /&gt;
3) Create a same-named app on the new deploy server that just has the default/deploymentclient.conf piece (not the script or inputs.conf)&lt;BR /&gt;
4) Tell the new deploy server to install the new app&lt;/P&gt;

&lt;P&gt;A future migration or DS change (such as new https keys) would only require deploying a new version of the "deploy-client-config" app.&lt;/P&gt;

&lt;P&gt;--Joe&lt;/P&gt;</description>
    <pubDate>Tue, 29 Sep 2020 09:25:18 GMT</pubDate>
    <dc:creator>jpvlsmv</dc:creator>
    <dc:date>2020-09-29T09:25:18Z</dc:date>
    <item>
      <title>How to configure all forwarders from an old deployment server to a new deployment server?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-configure-all-forwarders-from-an-old-deployment-server-to/m-p/205161#M40492</link>
      <description>&lt;P&gt;We are migrating deployment-apps, Forwarders, from one Deployment server to another Deployment server.&lt;BR /&gt;
In the process, I moved all deployment-apps to the new Deployment server, copied serverclass.conf also.&lt;/P&gt;

&lt;P&gt;I could see all server classes and apps on forwarder management also, but the issue I'm having is how we can configure the forwarders to new deployment server?&lt;/P&gt;

&lt;P&gt;We can do it through forwarder, but it's taking too much time and we don't have access to all those servers now.&lt;/P&gt;

&lt;P&gt;So how can we change the deployment-client.conf for all the forwarders at the same time from our old/new deployment server?&lt;/P&gt;</description>
      <pubDate>Thu, 14 Apr 2016 13:41:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-configure-all-forwarders-from-an-old-deployment-server-to/m-p/205161#M40492</guid>
      <dc:creator>abhay24</dc:creator>
      <dc:date>2016-04-14T13:41:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to configure all forwarders from an old deployment server to a new deployment server?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-configure-all-forwarders-from-an-old-deployment-server-to/m-p/205162#M40493</link>
      <description>&lt;P&gt;You can't. That's not a feature of deployment server, at least at the time I'm writing this. Most of us in large environments use a configuration management system (e.g. Ansible, Chef, Salt, Puppet) to change things like deploymentclient.conf across all of our forwarders. &lt;/P&gt;</description>
      <pubDate>Thu, 14 Apr 2016 18:03:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-configure-all-forwarders-from-an-old-deployment-server-to/m-p/205162#M40493</guid>
      <dc:creator>masonmorales</dc:creator>
      <dc:date>2016-04-14T18:03:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to configure all forwarders from an old deployment server to a new deployment server?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-configure-all-forwarders-from-an-old-deployment-server-to/m-p/205163#M40494</link>
      <description>&lt;P&gt;You can... but it's ugly and error-prone.&lt;/P&gt;

&lt;P&gt;The problem with deploying a deploymentclient.conf in an application is that the settings there are overridden by etc/system/local/deploymentclient.conf.  So if you can change that (system/local) file, you're in business.&lt;/P&gt;

&lt;P&gt;Ansible, Chef, Salt, Puppet, etc. are tools to change the file on the system, which is useful if they are already there, and you are allowed to make a change in the CM tool or can find a sysadmin long enough to explain what you need.&lt;/P&gt;

&lt;P&gt;But you have Splunk on the system already, and we can do it in Splunk as a Splunk admin.&lt;/P&gt;

&lt;P&gt;1) Create a deploy-client-config app in Splunk.  You need 3 things in it (in addition to what comes out of the Blank application template):  &lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;bin/remove_deploy_system_setting.[bat|py], a script that (re)moves    $SPLUNK_HOME/etc/system/local/deploymentclient.conf and restarts splunk&lt;/LI&gt;
&lt;LI&gt;default/inputs.conf that runs the above script every... say 5 minutes&lt;/LI&gt;
&lt;LI&gt;default/deploymentclient.conf that points at the new DS&lt;/LI&gt;
&lt;/UL&gt;

&lt;P&gt;2) Use the old deployment server to push this out to everybody (restart splunk after)&lt;BR /&gt;
3) Create a same-named app on the new deploy server that just has the default/deploymentclient.conf piece (not the script or inputs.conf)&lt;BR /&gt;
4) Tell the new deploy server to install the new app&lt;/P&gt;

&lt;P&gt;A future migration or DS change (such as new https keys) would only require deploying a new version of the "deploy-client-config" app.&lt;/P&gt;

&lt;P&gt;--Joe&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 09:25:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-configure-all-forwarders-from-an-old-deployment-server-to/m-p/205163#M40494</guid>
      <dc:creator>jpvlsmv</dc:creator>
      <dc:date>2020-09-29T09:25:18Z</dc:date>
    </item>
  </channel>
</rss>

