<?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: Searching all hosts in an index for count in Splunk Cloud Platform</title>
    <link>https://community.splunk.com/t5/Splunk-Cloud-Platform/Searching-all-hosts-in-an-index-for-count/m-p/546053#M601</link>
    <description>&lt;P&gt;This will get you the daily counts.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=devices | bin _time span=1d | stats count by _time host&lt;/LI-CODE&gt;&lt;P&gt;However, if a host has no events, it will not show up. Ways around this include using lookups to retrieve all the valid hosts from a file or key store, or use a longer time frame to retrieve (and possibly dedup) the hosts so you can see if they had event in the time frame of interest.&lt;/P&gt;</description>
    <pubDate>Tue, 30 Mar 2021 17:24:43 GMT</pubDate>
    <dc:creator>ITWhisperer</dc:creator>
    <dc:date>2021-03-30T17:24:43Z</dc:date>
    <item>
      <title>Searching all hosts in an index for count</title>
      <link>https://community.splunk.com/t5/Splunk-Cloud-Platform/Searching-all-hosts-in-an-index-for-count/m-p/546044#M599</link>
      <description>&lt;P&gt;Hello folks,&lt;/P&gt;&lt;P&gt;I have about 20 hosts that fall under index=devices&lt;/P&gt;&lt;P&gt;I need a query that will display the count information for each host, once over a 24 hour period.&amp;nbsp;&lt;BR /&gt;My intention is to use this to set an alert so that if a host does not have any count in 24 hours, it will send an alert.&amp;nbsp;&lt;/P&gt;&lt;P&gt;What query would work best for this?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 30 Mar 2021 16:38:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Cloud-Platform/Searching-all-hosts-in-an-index-for-count/m-p/546044#M599</guid>
      <dc:creator>verifi81</dc:creator>
      <dc:date>2021-03-30T16:38:44Z</dc:date>
    </item>
    <item>
      <title>Re: Searching all hosts in an index for count</title>
      <link>https://community.splunk.com/t5/Splunk-Cloud-Platform/Searching-all-hosts-in-an-index-for-count/m-p/546053#M601</link>
      <description>&lt;P&gt;This will get you the daily counts.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=devices | bin _time span=1d | stats count by _time host&lt;/LI-CODE&gt;&lt;P&gt;However, if a host has no events, it will not show up. Ways around this include using lookups to retrieve all the valid hosts from a file or key store, or use a longer time frame to retrieve (and possibly dedup) the hosts so you can see if they had event in the time frame of interest.&lt;/P&gt;</description>
      <pubDate>Tue, 30 Mar 2021 17:24:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Cloud-Platform/Searching-all-hosts-in-an-index-for-count/m-p/546053#M601</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2021-03-30T17:24:43Z</dc:date>
    </item>
  </channel>
</rss>

