<?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 do I get a count of applications deployed to forwarders? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-do-I-get-a-count-of-applications-deployed-to-forwarders/m-p/544903#M90885</link>
    <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/157728"&gt;@rholm01&lt;/a&gt;&amp;nbsp;Excellent, but along with this if you can add "last logs reported time for each host" then it will be excellent, because sometime host will report to deployment servers but will not send any logs...&lt;/P&gt;</description>
    <pubDate>Tue, 23 Mar 2021 10:28:37 GMT</pubDate>
    <dc:creator>nnimbe1</dc:creator>
    <dc:date>2021-03-23T10:28:37Z</dc:date>
    <item>
      <title>How do I get a count of applications deployed to forwarders?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-I-get-a-count-of-applications-deployed-to-forwarders/m-p/414661#M73321</link>
      <description>&lt;P&gt;The Deployment Server - (Settings -&amp;gt; Forwarder Management) shows Host Name, Client Name, Instance Name, IP Address, Actions, Machine Type, Deployed Apps, and Phone Home. I need to get a list of Hosts that have less than 5 Deployed Apps. I found this command which does this, but I only need the count and not the application names. Also, the Deployment server does not have an option to export the forwarder list.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| rest /services/deployment/server/clients splunk_server=local| table hostname applications*.stateOnClient | untable hostname applications value | eval applications=replace(applications,"applications\.(\w+)\.stateOnClient","\1") | stats values(applications) as applications by hostname
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 29 Nov 2018 15:04:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-I-get-a-count-of-applications-deployed-to-forwarders/m-p/414661#M73321</guid>
      <dc:creator>rholm01</dc:creator>
      <dc:date>2018-11-29T15:04:23Z</dc:date>
    </item>
    <item>
      <title>Re: How do I get a count of applications deployed to forwarders?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-I-get-a-count-of-applications-deployed-to-forwarders/m-p/414662#M73322</link>
      <description>&lt;P&gt;Also, the Deployment Server - Forwarder Management does not sort on the Deployed Apps column.&lt;/P&gt;</description>
      <pubDate>Thu, 29 Nov 2018 15:07:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-I-get-a-count-of-applications-deployed-to-forwarders/m-p/414662#M73322</guid>
      <dc:creator>rholm01</dc:creator>
      <dc:date>2018-11-29T15:07:40Z</dc:date>
    </item>
    <item>
      <title>Re: How do I get a count of applications deployed to forwarders?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-I-get-a-count-of-applications-deployed-to-forwarders/m-p/414663#M73323</link>
      <description>&lt;P&gt;Hi @rholm01,&lt;/P&gt;

&lt;P&gt;Try below query&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| rest /services/deployment/server/clients splunk_server=local| table hostname applications*.stateOnClient| untable hostname applications value | eval applications=replace(applications,"applications.(.*).stateOnClient","\1") | stats count by hostname
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;EDIT: Updated query.&lt;/P&gt;</description>
      <pubDate>Thu, 29 Nov 2018 15:24:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-I-get-a-count-of-applications-deployed-to-forwarders/m-p/414663#M73323</guid>
      <dc:creator>harsmarvania57</dc:creator>
      <dc:date>2018-11-29T15:24:33Z</dc:date>
    </item>
    <item>
      <title>Re: How do I get a count of applications deployed to forwarders?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-I-get-a-count-of-applications-deployed-to-forwarders/m-p/414664#M73324</link>
      <description>&lt;P&gt;Hi rholm01,&lt;BR /&gt;
you could run a search like the following to extract all the informations from Deployment Server:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| rest splunk_server=local /services/deployment/server/clients
| table hostname ip utsname *.restartSplunkd
| eval temp=hostname."#".ip."#".utsname 
| table temp *.restartSplunkd
| eval application.NoApp.restartSplunkd=0
| untable temp apps count 
| eval Apps=if(like(apps,"app%"),mvindex(split(apps,"."),1),null()) 
| eval ServerClass=if(like(apps,"server%"),mvindex(split(apps,"."),1),null() ) 
| rex field=temp "(?&amp;lt;Host&amp;gt;.*)#(?&amp;lt;Host_IP&amp;gt;.*)#(?&amp;lt;Machine_Type&amp;gt;.*)" 
| table Host Host_IP Machine_Type Apps ServerClass 
| stats Values(*) as * dc(Apps) AS dc_apps by Host Host_IP Machine_Type
| eval Apps=if(dc_apps=1,Apps,mvindex(Apps,1,10))
| nomv Apps
| nomv ServerClass
| fillnull value="NoSC" ServerClass
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I configured this search as an alert on my Deployment Server and then at the end I put an outputcsv command to write results on a CSV file, then I read it with an input so I have this information on my Search Head and I can correlate it with the other information.&lt;/P&gt;

&lt;P&gt;Bye.&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
      <pubDate>Thu, 29 Nov 2018 15:24:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-I-get-a-count-of-applications-deployed-to-forwarders/m-p/414664#M73324</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2018-11-29T15:24:49Z</dc:date>
    </item>
    <item>
      <title>Re: How do I get a count of applications deployed to forwarders?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-I-get-a-count-of-applications-deployed-to-forwarders/m-p/414665#M73325</link>
      <description>&lt;P&gt;Works like a champ!!!!  Love this, thank you!!!&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jun 2019 19:20:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-I-get-a-count-of-applications-deployed-to-forwarders/m-p/414665#M73325</guid>
      <dc:creator>jaxjohnny2000</dc:creator>
      <dc:date>2019-06-19T19:20:48Z</dc:date>
    </item>
    <item>
      <title>Re: How do I get a count of applications deployed to forwarders?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-I-get-a-count-of-applications-deployed-to-forwarders/m-p/414666#M73326</link>
      <description>&lt;P&gt;@harsmarvania57 - spot on search. Saweeet!&lt;/P&gt;

&lt;P&gt;Run this on your Deployment Server.&lt;BR /&gt;
I substituted the last lines 'hostname' and dropped in 'applications' and got a count of servers that have downloaded the Apps.&lt;/P&gt;</description>
      <pubDate>Tue, 03 Mar 2020 14:50:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-I-get-a-count-of-applications-deployed-to-forwarders/m-p/414666#M73326</guid>
      <dc:creator>MasterOogway</dc:creator>
      <dc:date>2020-03-03T14:50:47Z</dc:date>
    </item>
    <item>
      <title>Re: How do I get a count of applications deployed to forwarders?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-I-get-a-count-of-applications-deployed-to-forwarders/m-p/414667#M73327</link>
      <description>&lt;P&gt;Excellent! Runs straight out without any changes.&lt;/P&gt;

&lt;P&gt;This gives you a table view listing each server, OS, Apps installed, and what Serverclass they belong to.&lt;BR /&gt;
Not sure if it's possible, but it doesn't take into account if any server is 'Blacklist' in an App. THAT would be nice to know too.&lt;/P&gt;

&lt;P&gt;Already saved it as a Report. Thank you.&lt;/P&gt;</description>
      <pubDate>Tue, 03 Mar 2020 14:57:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-I-get-a-count-of-applications-deployed-to-forwarders/m-p/414667#M73327</guid>
      <dc:creator>MasterOogway</dc:creator>
      <dc:date>2020-03-03T14:57:24Z</dc:date>
    </item>
    <item>
      <title>Re: How do I get a count of applications deployed to forwarders?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-I-get-a-count-of-applications-deployed-to-forwarders/m-p/544903#M90885</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/157728"&gt;@rholm01&lt;/a&gt;&amp;nbsp;Excellent, but along with this if you can add "last logs reported time for each host" then it will be excellent, because sometime host will report to deployment servers but will not send any logs...&lt;/P&gt;</description>
      <pubDate>Tue, 23 Mar 2021 10:28:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-I-get-a-count-of-applications-deployed-to-forwarders/m-p/544903#M90885</guid>
      <dc:creator>nnimbe1</dc:creator>
      <dc:date>2021-03-23T10:28:37Z</dc:date>
    </item>
  </channel>
</rss>

