<?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 How to app check deployment status in Deployment Architecture</title>
    <link>https://community.splunk.com/t5/Deployment-Architecture/How-to-app-check-deployment-status/m-p/359560#M21287</link>
    <description>&lt;P&gt;Hi everybody&lt;/P&gt;

&lt;P&gt;I have a challenge I must to deal with. I would like to create a script to deploy application from en to end. This script must execute many steps : &lt;BR /&gt;
1) copy app in the deployment-app directory on the deployer&lt;BR /&gt;
2) reload the configuration server (reload deploy-server)&lt;BR /&gt;
3) wait until the app deployment is finished&lt;BR /&gt;
4) return the code status deployment in output&lt;/P&gt;

&lt;P&gt;the script can be called by a human or a external tool. &lt;/P&gt;

&lt;P&gt;I know that query on metadata index can allow to follow the app installation on the clients :&lt;BR /&gt;
index=_internal component=deployedapplication OR component=deploymentclient&lt;BR /&gt;
 | sort host _time &lt;BR /&gt;
 | table host _time component message&lt;/P&gt;

&lt;P&gt;But this dont tell me if the app is correctly deployed or not&lt;/P&gt;

&lt;P&gt;I wonder if anyone has written such a script ? Anyone can guide me or give me advice ?&lt;/P&gt;

&lt;P&gt;Regards&lt;/P&gt;</description>
    <pubDate>Tue, 20 Jun 2017 21:12:16 GMT</pubDate>
    <dc:creator>pmerlin1</dc:creator>
    <dc:date>2017-06-20T21:12:16Z</dc:date>
    <item>
      <title>How to app check deployment status</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/How-to-app-check-deployment-status/m-p/359560#M21287</link>
      <description>&lt;P&gt;Hi everybody&lt;/P&gt;

&lt;P&gt;I have a challenge I must to deal with. I would like to create a script to deploy application from en to end. This script must execute many steps : &lt;BR /&gt;
1) copy app in the deployment-app directory on the deployer&lt;BR /&gt;
2) reload the configuration server (reload deploy-server)&lt;BR /&gt;
3) wait until the app deployment is finished&lt;BR /&gt;
4) return the code status deployment in output&lt;/P&gt;

&lt;P&gt;the script can be called by a human or a external tool. &lt;/P&gt;

&lt;P&gt;I know that query on metadata index can allow to follow the app installation on the clients :&lt;BR /&gt;
index=_internal component=deployedapplication OR component=deploymentclient&lt;BR /&gt;
 | sort host _time &lt;BR /&gt;
 | table host _time component message&lt;/P&gt;

&lt;P&gt;But this dont tell me if the app is correctly deployed or not&lt;/P&gt;

&lt;P&gt;I wonder if anyone has written such a script ? Anyone can guide me or give me advice ?&lt;/P&gt;

&lt;P&gt;Regards&lt;/P&gt;</description>
      <pubDate>Tue, 20 Jun 2017 21:12:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/How-to-app-check-deployment-status/m-p/359560#M21287</guid>
      <dc:creator>pmerlin1</dc:creator>
      <dc:date>2017-06-20T21:12:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to app check deployment status</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/How-to-app-check-deployment-status/m-p/359561#M21288</link>
      <description>&lt;P&gt;Hello there,&lt;BR /&gt;
first i will say that i never written such script but seen many deployment  server automatons with various automation tools.&lt;BR /&gt;
second, what is it that you are trying to solve / achieve? Splunk can notify you on deployment errors very easily (i think some alerts on it are pre-configured)&lt;BR /&gt;
lastly, you can verify the new application was installed on clients (forwarders) via search. from the top of my head:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;  index=_internal sourcetype=splunkd action=install app=&amp;lt;yourapp&amp;gt; result=* | table _time host app result
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;i might be a little off here but if you would like to automate it, you will probably set the app names as tokens and pass them in the form of (app=token1 OR app=token2 OR ... app=tokenN)&lt;BR /&gt;
then you can set the result field in your message to view or to act upon in another script&lt;BR /&gt;
kindly verify my search as i did not test it but i think its pretty accurate.&lt;BR /&gt;
hope it helps&lt;/P&gt;</description>
      <pubDate>Sun, 25 Jun 2017 02:07:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/How-to-app-check-deployment-status/m-p/359561#M21288</guid>
      <dc:creator>adonio</dc:creator>
      <dc:date>2017-06-25T02:07:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to app check deployment status</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/How-to-app-check-deployment-status/m-p/359562#M21289</link>
      <description>&lt;P&gt;exactly i had the same question... it looks like they didnt add any command or tools to check the app deployment status &lt;BR /&gt;
(from master node to peers as well config deployment as well)&lt;/P&gt;

&lt;P&gt;maybe, enable debug options.. that will give some ideas. &lt;/P&gt;

&lt;PRE&gt;#
# Log $SPLUNK_HOME/etc/log-local.cfg:
# Enable DEBUG settings on the both instances in log.cfg 
# (can be done via the UI: Manager -&amp;gt; System Settings -&amp;gt; System logging )
#

- From command line
  @Server # ./splunk set log-level DeploymentServer -level DEBUG 
  @Client # ./splunk set log-level DeploymentClient -level DEBUG 


- From log.cfg (Must restart Splunk after changing this log.cfg)
[splunkd]
category.DeploymentServer = DEBUG

Or, 
category.DeploymentClient=DEBUG

And, possibly
category.HTTPClient = DEBUG
category.TcpInputProc = DEBUG
category.TcpOutputProc = DEBUG
&lt;/PRE&gt;</description>
      <pubDate>Sun, 25 Jun 2017 04:15:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/How-to-app-check-deployment-status/m-p/359562#M21289</guid>
      <dc:creator>inventsekar</dc:creator>
      <dc:date>2017-06-25T04:15:27Z</dc:date>
    </item>
  </channel>
</rss>

