<?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 properly configure a deployment app to deploy configuration files in Deployment Architecture</title>
    <link>https://community.splunk.com/t5/Deployment-Architecture/How-to-properly-configure-a-deployment-app-to-deploy/m-p/206268#M7712</link>
    <description>&lt;P&gt;Thank you so much for your answer! I did reload the deployment server and the configuration file I had in  $SPLUNK_HOME/etc/deployment-apps/App1/local disappeared and the Forwarders did not get the updated configuration files therefore I am not ready to delete the conf files in the local directory until I get thus update to happen in the UF.&lt;/P&gt;</description>
    <pubDate>Tue, 27 Dec 2016 21:31:00 GMT</pubDate>
    <dc:creator>avalle</dc:creator>
    <dc:date>2016-12-27T21:31:00Z</dc:date>
    <item>
      <title>How to properly configure a deployment app to deploy configuration files</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/How-to-properly-configure-a-deployment-app-to-deploy/m-p/206263#M7707</link>
      <description>&lt;P&gt;Hello,&lt;BR /&gt;
I have searched the answer but can't seem to find out how to properly set up my apps in the deployment server.&lt;BR /&gt;
I already have over 4k devices communicating to the deployment server, they are all in their correct server class and I have a directory for each app in the  $SPLUNK_HOME/etc/deployment-apps. Let's say I have App1 and i want to use App1 to send my configuration files to a server class. I create $SPLUNK_HOME/etc/deployment-apps/App1/local/outputs.conf with the correct settings and I deploy the app but for some reason it does not update the outpts.conf on the clients.  What am I doing wrong?&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 12:11:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/How-to-properly-configure-a-deployment-app-to-deploy/m-p/206263#M7707</guid>
      <dc:creator>avalle</dc:creator>
      <dc:date>2020-09-29T12:11:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to properly configure a deployment app to deploy configuration files</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/How-to-properly-configure-a-deployment-app-to-deploy/m-p/206264#M7708</link>
      <description>&lt;P&gt;You need to assign your App1 to the servers who should receive. From your description, you've already completed step "create deployment app" &lt;A href="https://docs.splunk.com/Documentation/Splunk/6.5.1/Updating/Createdeploymentapps"&gt;https://docs.splunk.com/Documentation/Splunk/6.5.1/Updating/Createdeploymentapps&lt;/A&gt;.  If you're going to use Deployment Server Web UI -&amp;gt; Forwarder Management dashboard to configure clients, you need to reload your deployment server now, to make the App1 visible in UI. Now use steps from following link to add/update serverclass, add clients and App1. &lt;A href="https://docs.splunk.com/Documentation/Splunk/6.5.1/Updating/Useforwardermanagement"&gt;https://docs.splunk.com/Documentation/Splunk/6.5.1/Updating/Useforwardermanagement&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Same from serverclass.conf file directly:- &lt;A href="http://docs.splunk.com/Documentation/Splunk/6.5.1/Updating/Useserverclass.conf"&gt;http://docs.splunk.com/Documentation/Splunk/6.5.1/Updating/Useserverclass.conf&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 23 Dec 2016 19:15:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/How-to-properly-configure-a-deployment-app-to-deploy/m-p/206264#M7708</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2016-12-23T19:15:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to properly configure a deployment app to deploy configuration files</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/How-to-properly-configure-a-deployment-app-to-deploy/m-p/206265#M7709</link>
      <description>&lt;P&gt;You mentioned &lt;CODE&gt;$SPLUNK_HOME/etc/deployment-apps/App1/local/outputs.conf&lt;/CODE&gt;. What about its twin? &lt;CODE&gt;inputs.conf&lt;/CODE&gt;?&lt;/P&gt;</description>
      <pubDate>Fri, 23 Dec 2016 20:10:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/How-to-properly-configure-a-deployment-app-to-deploy/m-p/206265#M7709</guid>
      <dc:creator>ddrillic</dc:creator>
      <dc:date>2016-12-23T20:10:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to properly configure a deployment app to deploy configuration files</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/How-to-properly-configure-a-deployment-app-to-deploy/m-p/206266#M7710</link>
      <description>&lt;P&gt;It depends by what you mean by "does not update the outputs.conf on the clients?"  &lt;/P&gt;

&lt;P&gt;If you mean the App1/local/outputs.conf doesn't get updated (physically checking the file on clients that show as having checked in recently don't show the update?) then are you sure you ran a &lt;CODE&gt;splunk reload deploy-server&lt;/CODE&gt; as per the &lt;A href="https://docs.splunk.com/Documentation/Splunk/6.5.1/Updating/Updateconfigurations"&gt;documentation on deploying apps&lt;/A&gt;?&lt;/P&gt;

&lt;P&gt;If instead the files themselves update (are physically changed) but the settings don't "take effect", then perhaps you've hit a file precedence issue.  Apps &lt;A href="http://docs.splunk.com/Documentation/Splunk/6.5.1/Admin/Wheretofindtheconfigurationfiles"&gt;can't override settings&lt;/A&gt; made in $SPLUNK_HOME/etc/system/local/&lt;EM&gt;.  In that case, confirm your app's files are in place and *should&lt;/EM&gt; work, then delete the local copy out of the system/local version and confirm that works for a few test cases, then deploy whatever it is you did to delete those files more widely once you are happy..  &lt;/P&gt;</description>
      <pubDate>Sat, 24 Dec 2016 03:32:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/How-to-properly-configure-a-deployment-app-to-deploy/m-p/206266#M7710</guid>
      <dc:creator>Richfez</dc:creator>
      <dc:date>2016-12-24T03:32:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to properly configure a deployment app to deploy configuration files</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/How-to-properly-configure-a-deployment-app-to-deploy/m-p/206267#M7711</link>
      <description>&lt;P&gt;Right now I am working on updating one conf file at a time it does not matter which one as long as i get one working.&lt;/P&gt;</description>
      <pubDate>Tue, 27 Dec 2016 21:27:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/How-to-properly-configure-a-deployment-app-to-deploy/m-p/206267#M7711</guid>
      <dc:creator>avalle</dc:creator>
      <dc:date>2016-12-27T21:27:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to properly configure a deployment app to deploy configuration files</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/How-to-properly-configure-a-deployment-app-to-deploy/m-p/206268#M7712</link>
      <description>&lt;P&gt;Thank you so much for your answer! I did reload the deployment server and the configuration file I had in  $SPLUNK_HOME/etc/deployment-apps/App1/local disappeared and the Forwarders did not get the updated configuration files therefore I am not ready to delete the conf files in the local directory until I get thus update to happen in the UF.&lt;/P&gt;</description>
      <pubDate>Tue, 27 Dec 2016 21:31:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/How-to-properly-configure-a-deployment-app-to-deploy/m-p/206268#M7712</guid>
      <dc:creator>avalle</dc:creator>
      <dc:date>2016-12-27T21:31:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to properly configure a deployment app to deploy configuration files</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/How-to-properly-configure-a-deployment-app-to-deploy/m-p/206269#M7713</link>
      <description>&lt;P&gt;I reloaded the deployment server and the configuration files under the  $SPLUNK_HOME/etc/deployment-apps/App1/local directory disappeared and the UF did not get the updated configuration files.&lt;/P&gt;</description>
      <pubDate>Tue, 27 Dec 2016 21:32:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/How-to-properly-configure-a-deployment-app-to-deploy/m-p/206269#M7713</guid>
      <dc:creator>avalle</dc:creator>
      <dc:date>2016-12-27T21:32:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to properly configure a deployment app to deploy configuration files</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/How-to-properly-configure-a-deployment-app-to-deploy/m-p/206270#M7714</link>
      <description>&lt;P&gt;Apparently I was looking in the wrong UF directory.&lt;BR /&gt;
The configuration files in the UF have been updated on $SPLUNK_HOME\etc\apps\security\local but for some reason the new entries are all in one line. Do I have to remove the conf files in the etc\system\local directory to test if these new files work?&lt;/P&gt;</description>
      <pubDate>Tue, 27 Dec 2016 22:11:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/How-to-properly-configure-a-deployment-app-to-deploy/m-p/206270#M7714</guid>
      <dc:creator>avalle</dc:creator>
      <dc:date>2016-12-27T22:11:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to properly configure a deployment app to deploy configuration files</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/How-to-properly-configure-a-deployment-app-to-deploy/m-p/206271#M7715</link>
      <description>&lt;P&gt;The &lt;A href="http://docs.splunk.com/Documentation/Splunk/6.5.1/Admin/Wheretofindtheconfigurationfiles"&gt;configuration file precedence docs page&lt;/A&gt; explains how this works, and I believe this link will take you right to &lt;A href="http://docs.splunk.com/Documentation/Splunk/6.5.1/Admin/Wheretofindtheconfigurationfiles#Precedence_order_within_global_context:"&gt;the precedence section&lt;/A&gt;.&lt;/P&gt;

&lt;P&gt;But, basically, yes.  That last link above has a paragraph that's quite clear - if you have a setting set in the etc/system/local/blah.conf file, that setting takes precedence over all others.&lt;/P&gt;

&lt;P&gt;As a concrete example, when I deploy my UFs manually (which I do for one-off installs or whatever) I supply a deployment server IP address and port for the UF to contact for its configuration.  That writes a etc/system/local/deploymentclient.conf file on the UF system.  Splunk starts, contacts the DS named in that file and gets its configuration, right?  So far fine.&lt;/P&gt;

&lt;P&gt;One of the files in one of the apps I have deployed is etc/apps/mycompany_deploymentclient/local/deploymentclient.conf.  THIS deploymentclient.conf is my official one, and if I have to move or change my Deployment Server, I can set up the new DS and then change this file to point to the new server.  The UFs will contact the old server, get a copy of the new configuration, restart and start talking to the NEW DS, right?&lt;/P&gt;

&lt;P&gt;But NOT if they still have a etc/system/local/deploymentclient.conf.  If that latter file exists, it's settings will override anything I could send in an app.  So, basically for the one-off installs I use this method for I install the UF with a DS setup, let it start and get its "real" config (which includes the deploymentclient.conf file it &lt;EM&gt;really&lt;/EM&gt; needs) and then delete the system/local/ version and restart it again.&lt;/P&gt;

&lt;P&gt;Now that's an example of file-level precedence, but settings inside files work the same way.  If in an etc/system/local/X.conf file you have setting Z, then NO OTHER setting for Z elsewhere will ever override the way it's set in etc/system/local/X.conf.&lt;/P&gt;

&lt;P&gt;Indeed, this is a great feature once it's understood.  For instance, all the default settings are in etc/system/default/blah.conf &amp;lt;- the LOWEST precedence files.  That means that all other settings will take effect (according to their own respective precedences) and only if no other file has a particular setting that's set in default will that setting take the default. &lt;/P&gt;

&lt;P&gt;Make sense?&lt;/P&gt;</description>
      <pubDate>Fri, 06 Jan 2017 21:07:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/How-to-properly-configure-a-deployment-app-to-deploy/m-p/206271#M7715</guid>
      <dc:creator>Richfez</dc:creator>
      <dc:date>2017-01-06T21:07:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to properly configure a deployment app to deploy configuration files</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/How-to-properly-configure-a-deployment-app-to-deploy/m-p/206272#M7716</link>
      <description>&lt;P&gt;The replacement of apps on the forwarder is &lt;CODE&gt;atomic&lt;/CODE&gt; and this confuses many people.  The process is like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;DC(forwarder) -&amp;gt; DC: "I am host X"
DS            -&amp;gt; DC: "Send me checksums for these apps: A, B, C, D"
DC            -&amp;gt; DS: "A=123, B=234, C=345, D=&amp;lt;null&amp;gt;"
DS            -&amp;gt; DC: "Install this 'D' and replace your 'A' with this"
DC                 : cd $SPLUNK_HOME/etc/apps; mv A /tmp/, tar xvf A.tgz; merge /tmp/A/local with ./A/local
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;It may not be &lt;EM&gt;exactly&lt;/EM&gt; like this but for the purposes of this question, it proves this point: If you are sitting in the &lt;CODE&gt;A&lt;/CODE&gt; directory on the forwarder and watching for files to change, you will never see the changes because you are in the old directory that has been trashed.  You need to cd out of the old/moved/trashed directory into the new/replacement/merged directory by again doing &lt;CODE&gt;cd $SPLUNK_HOME/etc/apps/A/&lt;/CODE&gt; after a few minutes to make sure that you are in the right place to see the changes.&lt;/P&gt;</description>
      <pubDate>Tue, 07 Feb 2017 20:13:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/How-to-properly-configure-a-deployment-app-to-deploy/m-p/206272#M7716</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2017-02-07T20:13:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to properly configure a deployment app to deploy configuration files</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/How-to-properly-configure-a-deployment-app-to-deploy/m-p/206273#M7717</link>
      <description>&lt;P&gt;@avalle - Did one of the answers below help provide a solution your question? If yes, please click “Accept” below the best answer to resolve this post and upvote anything that was helpful. If no, please leave a comment with more feedback. Thanks.&lt;/P&gt;</description>
      <pubDate>Sat, 11 Mar 2017 17:26:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/How-to-properly-configure-a-deployment-app-to-deploy/m-p/206273#M7717</guid>
      <dc:creator>aaraneta_splunk</dc:creator>
      <dc:date>2017-03-11T17:26:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to properly configure a deployment app to deploy configuration files</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/How-to-properly-configure-a-deployment-app-to-deploy/m-p/206274#M7718</link>
      <description>&lt;P&gt;If the problem is that you are deploying an &lt;CODE&gt;outputs.conf&lt;/CODE&gt; from the DS and some (or all) of the forwarders do not begin to send differently (to the new indexers or whatever) then the problem is 1 of 2 things:&lt;/P&gt;

&lt;P&gt;1: The &lt;CODE&gt;splunkd&lt;/CODE&gt; instance has not been restarted on the forwarder.  You need to set the &lt;CODE&gt;Restart Splunk&lt;/CODE&gt; setting for the &lt;CODE&gt;App&lt;/CODE&gt; that contains &lt;CODE&gt;outputs.conf&lt;/CODE&gt; inside of your &lt;CODE&gt;Deployment Server&lt;/CODE&gt;.&lt;/P&gt;

&lt;P&gt;2: There is another &lt;CODE&gt;outputs.conf&lt;/CODE&gt; file on the forwarder that has a higher precedence that the one that you are deploying.  This probably means &lt;CODE&gt;$SPLUNK_HOME/etc/system/local&lt;/CODE&gt; (or &lt;CODE&gt;$SPLUNK_HOME/etc/system/default&lt;/CODE&gt;, which is just WRONG, but check anyway).  Anything in &lt;CODE&gt;system/local&lt;/CODE&gt; is GOD and cannot be overridden with one exception: &lt;CODE&gt;slave-apps&lt;/CODE&gt; in an Indexer Cluster.&lt;/P&gt;</description>
      <pubDate>Sat, 11 Mar 2017 17:58:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/How-to-properly-configure-a-deployment-app-to-deploy/m-p/206274#M7718</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2017-03-11T17:58:03Z</dc:date>
    </item>
  </channel>
</rss>

