<?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: Does anyone have a query that lists UF hosts by version and serverclass? in Monitoring Splunk</title>
    <link>https://community.splunk.com/t5/Monitoring-Splunk/Does-anyone-have-a-query-that-lists-UF-hosts-by-version-and/m-p/545186#M4920</link>
    <description>&lt;P&gt;only flaw with the query is that the app counts are not quite right, but it gets me going, thx&lt;/P&gt;</description>
    <pubDate>Wed, 24 Mar 2021 16:42:36 GMT</pubDate>
    <dc:creator>Glasses</dc:creator>
    <dc:date>2021-03-24T16:42:36Z</dc:date>
    <item>
      <title>Does anyone have a query that lists UF hosts by version and serverclass?</title>
      <link>https://community.splunk.com/t5/Monitoring-Splunk/Does-anyone-have-a-query-that-lists-UF-hosts-by-version-and/m-p/545157#M4918</link>
      <description>&lt;P&gt;Does anyone have a query that lists UF hosts by version and serverclass?&lt;/P&gt;&lt;P&gt;I need a report that provides&amp;nbsp;&lt;/P&gt;&lt;P&gt;host= &amp;lt;foo&amp;gt;&amp;nbsp; Splunk Version = &amp;lt;version num&amp;gt; ServerClass = &amp;lt;bar&amp;gt;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Wed, 24 Mar 2021 14:39:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Monitoring-Splunk/Does-anyone-have-a-query-that-lists-UF-hosts-by-version-and/m-p/545157#M4918</guid>
      <dc:creator>Glasses</dc:creator>
      <dc:date>2021-03-24T14:39:03Z</dc:date>
    </item>
    <item>
      <title>Re: Does anyone have a query that lists UF hosts by version and serverclass?</title>
      <link>https://community.splunk.com/t5/Monitoring-Splunk/Does-anyone-have-a-query-that-lists-UF-hosts-by-version-and/m-p/545164#M4919</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/138497"&gt;@Glasses&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;You can use below search. Thanks to&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/161352"&gt;@gcusello&lt;/a&gt;&amp;nbsp;, I added splunkVersion to his search.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| rest splunk_server=local /services/deployment/server/clients
| table hostname ip utsname *.restartSplunkd splunkVersion
| eval temp=hostname."#".ip."#".utsname."#".splunkVersion
| table temp *.restartSplunkd splunkVersion
| 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;.*)#(?&amp;lt;splunkVersion&amp;gt;.*)" 
| table Host Host_IP Machine_Type Apps ServerClass splunkVersion
| stats Values(*) as * dc(Apps) AS dc_apps by Host Host_IP Machine_Type splunkVersion
| eval Apps=if(dc_apps=1,Apps,mvindex(Apps,1,10))
| nomv Apps
| nomv ServerClass
| fillnull value="NoSC" ServerClass
| eval dc_apps=dc_apps-1&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 24 Mar 2021 14:57:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Monitoring-Splunk/Does-anyone-have-a-query-that-lists-UF-hosts-by-version-and/m-p/545164#M4919</guid>
      <dc:creator>scelikok</dc:creator>
      <dc:date>2021-03-24T14:57:16Z</dc:date>
    </item>
    <item>
      <title>Re: Does anyone have a query that lists UF hosts by version and serverclass?</title>
      <link>https://community.splunk.com/t5/Monitoring-Splunk/Does-anyone-have-a-query-that-lists-UF-hosts-by-version-and/m-p/545186#M4920</link>
      <description>&lt;P&gt;only flaw with the query is that the app counts are not quite right, but it gets me going, thx&lt;/P&gt;</description>
      <pubDate>Wed, 24 Mar 2021 16:42:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Monitoring-Splunk/Does-anyone-have-a-query-that-lists-UF-hosts-by-version-and/m-p/545186#M4920</guid>
      <dc:creator>Glasses</dc:creator>
      <dc:date>2021-03-24T16:42:36Z</dc:date>
    </item>
  </channel>
</rss>

