<?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 search a service that not running on certain hosts in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/how-to-search-a-service-that-not-running-on-certain-hosts/m-p/562142#M195499</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/161352"&gt;@gcusello&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Appreciate the hints. I will go ahead with a try with input lookup.&lt;/P&gt;&lt;P&gt;Many thanks!&lt;/P&gt;&lt;P&gt;James&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 04 Aug 2021 22:41:39 GMT</pubDate>
    <dc:creator>JamesJ</dc:creator>
    <dc:date>2021-08-04T22:41:39Z</dc:date>
    <item>
      <title>how to search a service that not running on certain hosts</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-to-search-a-service-that-not-running-on-certain-hosts/m-p/561983#M195451</link>
      <description>&lt;P&gt;Dear Community,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am writing a search for windows services. I am trying to find out the number of hosts that having/not having a certain service.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is the search that I have&amp;nbsp; to find out servers that having the services running:&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;index=*_oswin sourcetype="WMI:Service" source="WMI:Service" Name="Appdynamics Machine Agent" | dedup host&amp;nbsp; | stats sum()&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;How can I do the second part please? Also, I want to integrate those two numbers into one pie chart. Any suggestion is highly appreicated!&amp;nbsp;&lt;/DIV&gt;</description>
      <pubDate>Wed, 04 Aug 2021 01:01:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-to-search-a-service-that-not-running-on-certain-hosts/m-p/561983#M195451</guid>
      <dc:creator>JamesJ</dc:creator>
      <dc:date>2021-08-04T01:01:44Z</dc:date>
    </item>
    <item>
      <title>Re: how to search a service that not running on certain hosts</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-to-search-a-service-that-not-running-on-certain-hosts/m-p/561989#M195454</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/237100"&gt;@JamesJ&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To find not running services you should have catalog list of services in a lookup or somewhere in splunk.&lt;/P&gt;&lt;P&gt;Can you describe what's first part, second part here that you want to see?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Aug 2021 01:21:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-to-search-a-service-that-not-running-on-certain-hosts/m-p/561989#M195454</guid>
      <dc:creator>venkatasri</dc:creator>
      <dc:date>2021-08-04T01:21:11Z</dc:date>
    </item>
    <item>
      <title>Re: how to search a service that not running on certain hosts</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-to-search-a-service-that-not-running-on-certain-hosts/m-p/561995#M195457</link>
      <description>&lt;P&gt;Hi Venk,&lt;/P&gt;&lt;P&gt;Thanks for replying.&amp;nbsp;&lt;/P&gt;&lt;P&gt;The first part is to list all servers that having a particular service (e.g.&amp;nbsp;Spooler) installed.&lt;/P&gt;&lt;P&gt;The second part is to list all servers that don't have this service installed.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Finally, I want to put the number into a pie chart.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope that makes sense.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Aug 2021 01:36:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-to-search-a-service-that-not-running-on-certain-hosts/m-p/561995#M195457</guid>
      <dc:creator>JamesJ</dc:creator>
      <dc:date>2021-08-04T01:36:42Z</dc:date>
    </item>
    <item>
      <title>Re: how to search a service that not running on certain hosts</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-to-search-a-service-that-not-running-on-certain-hosts/m-p/562057#M195470</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/237100"&gt;@JamesJ&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;you have to create a lookup (called e.g. perimeter.csv) containing all the monitored servers (only one column with "host").&lt;/P&gt;&lt;P&gt;Then you hav e to modify your search having something like this:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=*_oswin sourcetype="WMI:Service" source="WMI:Service" Name="Appdynamics Machine Agent" 
| eval host=lower(host)
| stats count BY host
| append [ | inputlookup perimeter.csv | eval host=lower(host), count=0 | fields host count ]
| stats sum(count) AS total BY host
| eval status=if(total=0,"Not present","Present")
| stats count BY status&lt;/LI-CODE&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Wed, 04 Aug 2021 11:14:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-to-search-a-service-that-not-running-on-certain-hosts/m-p/562057#M195470</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2021-08-04T11:14:54Z</dc:date>
    </item>
    <item>
      <title>Re: how to search a service that not running on certain hosts</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-to-search-a-service-that-not-running-on-certain-hosts/m-p/562142#M195499</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/161352"&gt;@gcusello&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Appreciate the hints. I will go ahead with a try with input lookup.&lt;/P&gt;&lt;P&gt;Many thanks!&lt;/P&gt;&lt;P&gt;James&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Aug 2021 22:41:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-to-search-a-service-that-not-running-on-certain-hosts/m-p/562142#M195499</guid>
      <dc:creator>JamesJ</dc:creator>
      <dc:date>2021-08-04T22:41:39Z</dc:date>
    </item>
  </channel>
</rss>

