<?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: Summary collection of summary indexed data in Knowledge Management</title>
    <link>https://community.splunk.com/t5/Knowledge-Management/Summary-collection-of-summary-indexed-data/m-p/65818#M609</link>
    <description>&lt;P&gt;When I run the following search: &lt;CODE&gt;index=summary report=blah2 | stats sum(inner_count) by field1 field2 _time&lt;/CODE&gt;, i do see "mon_count" being displayed as a "field" under the "Other interesting fields" section. However when I try to use it in the &lt;CODE&gt;stats&lt;/CODE&gt; command it doesn't work.&lt;/P&gt;</description>
    <pubDate>Sat, 09 Oct 2010 01:00:53 GMT</pubDate>
    <dc:creator>sranga</dc:creator>
    <dc:date>2010-10-09T01:00:53Z</dc:date>
    <item>
      <title>Summary collection of summary indexed data</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/Summary-collection-of-summary-indexed-data/m-p/65815#M606</link>
      <description>&lt;P&gt;Hi  &lt;/P&gt;

&lt;P&gt;We have a saved-search that retrieves data from an existing summary index. It is of the following form:  &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=summary s_name=blah | stats count as inner_count by field1 field2 _time | 
bucket span=1mon _time | sistats sum(inner_count) as outer_count by field1 field2 _time
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The above search is saved with a marker: &lt;CODE&gt;s_name=blah2&lt;/CODE&gt;. When I try to retrieve this in a dashboard using the following query, the outer_count always shows up as 0.  &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=summary s_name=blah2 | stats sum(inner_count) as outer_count by field1 field2 _time
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Any help is appreciated.  &lt;/P&gt;

&lt;P&gt;Ranga&lt;/P&gt;</description>
      <pubDate>Thu, 07 Oct 2010 05:42:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/Summary-collection-of-summary-indexed-data/m-p/65815#M606</guid>
      <dc:creator>sranga</dc:creator>
      <dc:date>2010-10-07T05:42:26Z</dc:date>
    </item>
    <item>
      <title>Re: Summary collection of summary indexed data</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/Summary-collection-of-summary-indexed-data/m-p/65816#M607</link>
      <description>&lt;P&gt;Your final &lt;CODE&gt;sistats&lt;/CODE&gt; command on your summary indexing search should not output a field called "inner_count".&lt;/P&gt;

&lt;P&gt;Which you should be able to confirm with the search:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=summary s_name=blah2 inner_count=*
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;(I'm not 100% sure what this looks like with the &lt;CODE&gt;sistats&lt;/CODE&gt;, I normally prefer &lt;CODE&gt;stats&lt;/CODE&gt; and simply avoid any of the complex stuff that &lt;CODE&gt;sistats&lt;/CODE&gt; handles that &lt;CODE&gt;stats&lt;/CODE&gt; does not.  So I could be wrong about that search.)&lt;/P&gt;

&lt;P&gt;What I do not full understand is how your second search &lt;CODE&gt;sum(inner_count)&lt;/CODE&gt; give a value of 0.  If &lt;CODE&gt;inner_count&lt;/CODE&gt; is missing completely, you should get a "missing field" error in your search.&lt;/P&gt;

&lt;P&gt;&lt;/P&gt;&lt;HR /&gt;&lt;P&gt;&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;Update:&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;Never mind, I just figured out that &lt;CODE&gt;sistats&lt;/CODE&gt; seems to just pretty much ignore field renaming using "as"; so "inner_count" is probably the field name that is saved in the summary index and not "outer_count".&lt;/P&gt;

&lt;P&gt;Out of curiosity, if you take the secondary summary index out of the equation, does it work?&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=summary s_name=blah | stats count as inner_count by field1 field2 _time | bucket span=1mon _time | sistats sum(inner_count) by field1 field2 _time | stats sum(inner_count) as outer_count by field1 field2 _time
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 07 Oct 2010 06:28:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/Summary-collection-of-summary-indexed-data/m-p/65816#M607</guid>
      <dc:creator>Lowell</dc:creator>
      <dc:date>2010-10-07T06:28:25Z</dc:date>
    </item>
    <item>
      <title>Re: Summary collection of summary indexed data</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/Summary-collection-of-summary-indexed-data/m-p/65817#M608</link>
      <description>&lt;P&gt;Thanks. If sistats ignores field renaming, my first summary-indexed query would also not function right?&lt;/P&gt;</description>
      <pubDate>Fri, 08 Oct 2010 04:54:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/Summary-collection-of-summary-indexed-data/m-p/65817#M608</guid>
      <dc:creator>sranga</dc:creator>
      <dc:date>2010-10-08T04:54:06Z</dc:date>
    </item>
    <item>
      <title>Re: Summary collection of summary indexed data</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/Summary-collection-of-summary-indexed-data/m-p/65818#M609</link>
      <description>&lt;P&gt;When I run the following search: &lt;CODE&gt;index=summary report=blah2 | stats sum(inner_count) by field1 field2 _time&lt;/CODE&gt;, i do see "mon_count" being displayed as a "field" under the "Other interesting fields" section. However when I try to use it in the &lt;CODE&gt;stats&lt;/CODE&gt; command it doesn't work.&lt;/P&gt;</description>
      <pubDate>Sat, 09 Oct 2010 01:00:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/Summary-collection-of-summary-indexed-data/m-p/65818#M609</guid>
      <dc:creator>sranga</dc:creator>
      <dc:date>2010-10-09T01:00:53Z</dc:date>
    </item>
    <item>
      <title>Re: Summary collection of summary indexed data</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/Summary-collection-of-summary-indexed-data/m-p/65819#M610</link>
      <description>&lt;P&gt;I'm not familiar with the "mon_*" prefixed fields, but then again I don't know all that much about how the &lt;CODE&gt;si&lt;/CODE&gt; search commands summarized your fields either, so this could be normal.   Well, at least you've been able to prove that it's not a summary indexing problem, it's something in your combination of &lt;CODE&gt;sistats ... | stats ...&lt;/CODE&gt;, or it's a bug.&lt;/P&gt;</description>
      <pubDate>Sat, 09 Oct 2010 01:09:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/Summary-collection-of-summary-indexed-data/m-p/65819#M610</guid>
      <dc:creator>Lowell</dc:creator>
      <dc:date>2010-10-09T01:09:21Z</dc:date>
    </item>
    <item>
      <title>Re: Summary collection of summary indexed data</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/Summary-collection-of-summary-indexed-data/m-p/65820#M611</link>
      <description>&lt;P&gt;Sorry. I meant to say "outer_count". The &lt;CODE&gt;outer_count&lt;/CODE&gt; field gets displayed in the "Other interesting fields" section. &lt;CODE&gt;outer_count&lt;/CODE&gt; is defined in the summary index query (in the question above).&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 09:18:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/Summary-collection-of-summary-indexed-data/m-p/65820#M611</guid>
      <dc:creator>sranga</dc:creator>
      <dc:date>2020-09-28T09:18:55Z</dc:date>
    </item>
  </channel>
</rss>

