<?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: Splunk query to get total number services count based on host in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-search-total-number-services-count-based-on-host/m-p/618420#M214932</link>
    <description>&lt;P&gt;Note that you will have to use the correct field names and values for your usecase and that the where command is case-sensitive&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=ivz_unix* Service source="Unix:Service"
| stats latest(status) as status by host Service
| where status="stopped"
| stats count by host&lt;/LI-CODE&gt;</description>
    <pubDate>Wed, 26 Oct 2022 15:05:06 GMT</pubDate>
    <dc:creator>ITWhisperer</dc:creator>
    <dc:date>2022-10-26T15:05:06Z</dc:date>
    <item>
      <title>How search total number services count based on host?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-search-total-number-services-count-based-on-host/m-p/618380#M214920</link>
      <description>&lt;P&gt;hai all,&lt;/P&gt;
&lt;P&gt;i am checking about list of services down based on a host using below search&amp;nbsp;&lt;/P&gt;
&lt;P&gt;index=ivz_unix* Service source="Unix:Service" status=stopped&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;what was the search query use to check list of services down for a host based on host name.&lt;/P&gt;
&lt;P&gt;for example i want to see for a host these services are in stopped state.&lt;/P&gt;
&lt;P&gt;please help&lt;/P&gt;</description>
      <pubDate>Wed, 26 Oct 2022 14:42:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-search-total-number-services-count-based-on-host/m-p/618380#M214920</guid>
      <dc:creator>sekhar463</dc:creator>
      <dc:date>2022-10-26T14:42:23Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk query to get total number services count based on host</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-search-total-number-services-count-based-on-host/m-p/618386#M214921</link>
      <description>&lt;P&gt;It depends what events you have in your index (which you haven't shared).&lt;/P&gt;&lt;P&gt;Having said that, perhaps you want the latest status of the services on each host and count the number in the stopped state?&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=ivz_unix* Service source="Unix:Service"
| stats latest(status) as status by host Service
| where status="stopped"
| stats count by host&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 26 Oct 2022 13:23:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-search-total-number-services-count-based-on-host/m-p/618386#M214921</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2022-10-26T13:23:59Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk query to get total number services count based on host</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-search-total-number-services-count-based-on-host/m-p/618393#M214922</link>
      <description>&lt;P&gt;i am not getting anything while checking with this&lt;/P&gt;&lt;P&gt;actually i want create a view as to check list of services in stopped state based on hostname&lt;/P&gt;</description>
      <pubDate>Wed, 26 Oct 2022 13:47:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-search-total-number-services-count-based-on-host/m-p/618393#M214922</guid>
      <dc:creator>sekhar463</dc:creator>
      <dc:date>2022-10-26T13:47:09Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk query to get total number services count based on host</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-search-total-number-services-count-based-on-host/m-p/618402#M214923</link>
      <description>&lt;P&gt;Perhaps if you could share some of your events (anonymised of course) and which fields you already have extracted, we might be able to help you a bit more.&lt;/P&gt;</description>
      <pubDate>Wed, 26 Oct 2022 14:22:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-search-total-number-services-count-based-on-host/m-p/618402#M214923</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2022-10-26T14:22:02Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk query to get total number services count based on host</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-search-total-number-services-count-based-on-host/m-p/618407#M214924</link>
      <description>&lt;P&gt;hi events as for unix services data for source type&amp;nbsp;Unix:Service"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2:36:57.000 PM&lt;BR /&gt;Wed Oct 26 09:36:57 CDT 2022 type=systemctl UNIT=systemd-readahead-done.service, LOADED=loaded, ACTIVE=inactive, SUB=dead, DESCRIPTION="Stop Read-Ahead Data Collection"&lt;BR /&gt;host = usinfsmbcld100source = Unix:Servicesourcetype = Unix:Service&lt;BR /&gt;10/26/22&lt;BR /&gt;2:36:57.000 PM&lt;BR /&gt;Wed Oct 26 09:36:57 CDT 2022 type=systemctl UNIT=systemd-readahead-collect.service, LOADED=loaded, ACTIVE=inactive, SUB=dead, DESCRIPTION="Collect Read-Ahead Data"&lt;BR /&gt;host = usinfsmbcld100source = Unix:Servicesourcetype = Unix:Service&lt;BR /&gt;10/26/22&lt;BR /&gt;2:36:57.000 PM&lt;BR /&gt;Wed Oct 26 09:36:57 CDT 2022 type=systemctl UNIT=systemd-modules-load.service, LOADED=loaded, ACTIVE=inactive, SUB=dead, DESCRIPTION="Load Kernel Modules"&lt;BR /&gt;host = usinfsmbcld100source = Unix:Servicesourcetype = Unix:Service&lt;BR /&gt;10/26/22&lt;BR /&gt;2:36:57.000 PM&lt;BR /&gt;Wed Oct 26 09:36:57 CDT 2022 type=systemctl UNIT=systemd-ask-password-plymouth.service, LOADED=loaded, ACTIVE=inactive, SUB=dead, DESCRIPTION="Forward Password Requests to Plymouth"&lt;BR /&gt;host = usinfsmbcld100source = Unix:Servicesourcetype = Unix:Service&lt;BR /&gt;10/26/22&lt;BR /&gt;2:36:57.000 PM&lt;BR /&gt;Wed Oct 26 09:36:57 CDT 2022 type=systemctl UNIT=rpc-statd-notify.service, LOADED=loaded, ACTIVE=inactive, SUB=dead, DESCRIPTION="Notify NFS peers of a restart"&lt;BR /&gt;host = usinfsmbcld100source = Unix:Servicesourcetype = Unix:Service&lt;BR /&gt;10/26/22&lt;BR /&gt;2:36:57.000 PM&lt;BR /&gt;Wed Oct 26 09:36:57 CDT 2022 type=systemctl UNIT=rhel-autorelabel.service, LOADED=loaded, ACTIVE=inactive, SUB=dead, DESCRIPTION="Relabel all filesystems, if necessary"&lt;BR /&gt;host = usinfsmbcld100source = Unix:Servicesourcetype = Unix:Service&lt;BR /&gt;10/26/22&lt;BR /&gt;2:36:57.000 PM&lt;BR /&gt;Wed Oct 26 09:36:57 CDT 2022 type=systemctl UNIT=rhel-autorelabel-mark.service, LOADED=loaded, ACTIVE=inactive, SUB=dead, DESCRIPTION="Mark the need to relabel after reboot"&lt;BR /&gt;host = usinfsmbcld100source = Unix:Servicesourcetype = Unix:Service&lt;BR /&gt;10/26/22&lt;BR /&gt;2:36:57.000 PM&lt;BR /&gt;Wed Oct 26 09:36:57 CDT 2022 type=systemctl UNIT=pxp-agent.service, LOADED=not-found, ACTIVE=inactive, SUB=dead, DESCRIPTION="pxp-agent.service"&lt;BR /&gt;host = usinfsmbcld100source = Unix:Servicesourcetype = Unix:Service&lt;BR /&gt;10/26/22&lt;BR /&gt;2:36:57.000 PM&lt;BR /&gt;Wed Oct 26 09:36:57 CDT 2022 type=systemctl UNIT=plymouth-quit-wait.service, LOADED=loaded, ACTIVE=inactive, SUB=dead, DESCRIPTION="Wait for Plymouth Boot Screen to Quit"&lt;BR /&gt;host = usinfsmbcld100source = Unix:Servicesourcetype = Unix:Service&lt;/P&gt;</description>
      <pubDate>Wed, 26 Oct 2022 14:38:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-search-total-number-services-count-based-on-host/m-p/618407#M214924</guid>
      <dc:creator>sekhar463</dc:creator>
      <dc:date>2022-10-26T14:38:29Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk query to get total number services count based on host</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-search-total-number-services-count-based-on-host/m-p/618415#M214927</link>
      <description>&lt;P&gt;What fields do you already have extracted?&lt;/P&gt;&lt;P&gt;Which part of the event tells you what the service is?&lt;/P&gt;&lt;P&gt;Which part of the event tells you the status of the service?&lt;/P&gt;</description>
      <pubDate>Wed, 26 Oct 2022 14:53:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-search-total-number-services-count-based-on-host/m-p/618415#M214927</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2022-10-26T14:53:53Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk query to get total number services count based on host</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-search-total-number-services-count-based-on-host/m-p/618417#M214929</link>
      <description>&lt;P&gt;Already extracted the fields host , service name ,description and status&lt;/P&gt;&lt;P&gt;so i want to know how many services are down for a host.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 26 Oct 2022 15:00:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-search-total-number-services-count-based-on-host/m-p/618417#M214929</guid>
      <dc:creator>sekhar463</dc:creator>
      <dc:date>2022-10-26T15:00:16Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk query to get total number services count based on host</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-search-total-number-services-count-based-on-host/m-p/618420#M214932</link>
      <description>&lt;P&gt;Note that you will have to use the correct field names and values for your usecase and that the where command is case-sensitive&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=ivz_unix* Service source="Unix:Service"
| stats latest(status) as status by host Service
| where status="stopped"
| stats count by host&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 26 Oct 2022 15:05:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-search-total-number-services-count-based-on-host/m-p/618420#M214932</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2022-10-26T15:05:06Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk query to get total number services count based on host</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-search-total-number-services-count-based-on-host/m-p/618446#M214949</link>
      <description>&lt;P&gt;its giving 0 results&amp;nbsp;&lt;/P&gt;&lt;P&gt;but while it has data,how we can filter to list only services for a host&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 26 Oct 2022 17:16:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-search-total-number-services-count-based-on-host/m-p/618446#M214949</guid>
      <dc:creator>sekhar463</dc:creator>
      <dc:date>2022-10-26T17:16:27Z</dc:date>
    </item>
  </channel>
</rss>

