<?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: Count events in summary index in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Count-events-in-summary-index/m-p/551700#M156558</link>
    <description>&lt;P&gt;How about _time&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| eval b=mvcount(_time)&lt;/LI-CODE&gt;</description>
    <pubDate>Sat, 15 May 2021 13:04:17 GMT</pubDate>
    <dc:creator>ITWhisperer</dc:creator>
    <dc:date>2021-05-15T13:04:17Z</dc:date>
    <item>
      <title>Count events in summary index</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Count-events-in-summary-index/m-p/551354#M156462</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hello, everybody!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Does anybody can help with such an easy problem as counting events in&amp;nbsp;summary index?&lt;/P&gt;&lt;P&gt;I have a summary index populated with something like SS:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| tstats prestats=true summariesonly=false
    min(CPU.CPU_Performance.cpu_load_percent),
    avg(CPU.CPU_Performance.cpu_load_percent), 
    max(CPU.CPU_Performance.cpu_load_percent)
  from datamodel=MODEL where nodename=CPU.CPU_Performance
  by host, CPU.CPU_Performance.cpu_instance 
| sistats
    min(CPU.CPU_Performance.cpu_load_percent),     
    avg(CPU.CPU_Performance.cpu_load_percent), 
    max(CPU.CPU_Performance.cpu_load_percent)
  by host, CPU.CPU_Performance.cpu_instance 
| addinfo 
| eval _time=info_min_time, host=upper(host) 
| fields - info_sid, info_search_time, info_min_time, info_max_time
| collect index=my_summary&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My SS is scheduled to run once an hour, so I every hour get 1 event for each orig_host in&amp;nbsp;summary index.&lt;/P&gt;&lt;P&gt;Now I want to check, if all the required events are here in&amp;nbsp;summary index. I expect to get count=24 events for each orig_host in&amp;nbsp;summary index for each day. When I try the search:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=my_summary | stats count by orig_host&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I get all the&amp;nbsp;&lt;SPAN class="t"&gt;psrsvd&lt;/SPAN&gt;&lt;SPAN&gt;_&lt;/SPAN&gt;&lt;SPAN class="t"&gt;ct_ values summarized giving me not what I expected. How should I change my search to count&amp;nbsp;events in&amp;nbsp;summary index?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 12 May 2021 13:31:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Count-events-in-summary-index/m-p/551354#M156462</guid>
      <dc:creator>oshirnin</dc:creator>
      <dc:date>2021-05-12T13:31:30Z</dc:date>
    </item>
    <item>
      <title>Re: Count events in summary index</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Count-events-in-summary-index/m-p/551367#M156465</link>
      <description>&lt;LI-CODE lang="markup"&gt;index=my_summary 
| bin span=1d _time
| stats count by _time orig_host&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 12 May 2021 15:10:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Count-events-in-summary-index/m-p/551367#M156465</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2021-05-12T15:10:58Z</dc:date>
    </item>
    <item>
      <title>Re: Count events in summary index</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Count-events-in-summary-index/m-p/551430#M156488</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/225168"&gt;@ITWhisperer&lt;/a&gt;&amp;nbsp;this doesn't work, it takes&amp;nbsp;&lt;STRONG&gt;&lt;SPAN class="t"&gt;psrsvd&lt;/SPAN&gt;_&lt;/STRONG&gt;&lt;SPAN class="t"&gt;&lt;STRONG&gt;ct_&lt;/STRONG&gt; values and sum these. Please, check attached&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="t"&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="splunk01.PNG" style="width: 999px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/14128i9617719C042AFFFB/image-size/large?v=v2&amp;amp;px=999" role="button" title="splunk01.PNG" alt="splunk01.PNG" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="t"&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="splunk02.PNG" style="width: 999px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/14129i8E560FC71803CBF2/image-size/large?v=v2&amp;amp;px=999" role="button" title="splunk02.PNG" alt="splunk02.PNG" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 13 May 2021 08:30:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Count-events-in-summary-index/m-p/551430#M156488</guid>
      <dc:creator>oshirnin</dc:creator>
      <dc:date>2021-05-13T08:30:35Z</dc:date>
    </item>
    <item>
      <title>Re: Count events in summary index</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Count-events-in-summary-index/m-p/551432#M156489</link>
      <description>&lt;P&gt;It looks like orig_host might be a multivalue field in your summary index, with your host repeated 3.5 times. (3.5 * 24 = 84). Please can you check?&lt;/P&gt;</description>
      <pubDate>Thu, 13 May 2021 09:02:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Count-events-in-summary-index/m-p/551432#M156489</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2021-05-13T09:02:13Z</dc:date>
    </item>
    <item>
      <title>Re: Count events in summary index</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Count-events-in-summary-index/m-p/551443#M156490</link>
      <description>&lt;P&gt;Sure my&amp;nbsp;&lt;SPAN&gt;orig_host is NOT MV&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="splunk03.PNG" style="width: 999px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/14130iD26617160F38EDB4/image-size/large?v=v2&amp;amp;px=999" role="button" title="splunk03.PNG" alt="splunk03.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 13 May 2021 11:12:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Count-events-in-summary-index/m-p/551443#M156490</guid>
      <dc:creator>oshirnin</dc:creator>
      <dc:date>2021-05-13T11:12:31Z</dc:date>
    </item>
    <item>
      <title>Re: Count events in summary index</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Count-events-in-summary-index/m-p/551697#M156556</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;SPAN&gt;can anyone help with this?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 15 May 2021 12:17:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Count-events-in-summary-index/m-p/551697#M156556</guid>
      <dc:creator>oshirnin</dc:creator>
      <dc:date>2021-05-15T12:17:14Z</dc:date>
    </item>
    <item>
      <title>Re: Count events in summary index</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Count-events-in-summary-index/m-p/551700#M156558</link>
      <description>&lt;P&gt;How about _time&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| eval b=mvcount(_time)&lt;/LI-CODE&gt;</description>
      <pubDate>Sat, 15 May 2021 13:04:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Count-events-in-summary-index/m-p/551700#M156558</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2021-05-15T13:04:17Z</dc:date>
    </item>
  </channel>
</rss>

