<?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: Why can't I sum summary data from sistats? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Why-can-t-I-sum-summary-data-from-sistats/m-p/51755#M12552</link>
    <description>&lt;P&gt;You're thinking about it too hard. By using &lt;CODE&gt;| sistats count by host, source, sourcetype&lt;/CODE&gt; before, just write a search that is &lt;CODE&gt;index=summary ... | stats count by orig_host, orig_source, orig_sourcetype, field1, field2&lt;/CODE&gt; and it will just work. The count will be there and you can sum it up from there. &lt;/P&gt;

&lt;P&gt;(Remember host, source, and sourcetype are rewritten when summarized, so use the &lt;CODE&gt;orig_&lt;/CODE&gt; fields.)&lt;/P&gt;</description>
    <pubDate>Thu, 16 Sep 2010 09:43:15 GMT</pubDate>
    <dc:creator>Jason</dc:creator>
    <dc:date>2010-09-16T09:43:15Z</dc:date>
    <item>
      <title>Why can't I sum summary data from sistats?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-can-t-I-sum-summary-data-from-sistats/m-p/51754#M12551</link>
      <description>&lt;P&gt;So, I was running &lt;CODE&gt;... | sistats count by host, source, sourcetype, field1, field2&lt;/CODE&gt; and saving it to a summary index. &lt;/P&gt;

&lt;P&gt;Then, I wanted to use the summary data to give me lists of hosts, sourcetypes, and sources. No problem, I looked at the summary data and found they were all stored in &lt;CODE&gt;orig_&lt;/CODE&gt; variables. (This rewrite only happens with host, source, and sourcetype.)&lt;/P&gt;

&lt;P&gt;The problem came when I wanted to create a sum of all "count"s done by the original sistats. It was in a field called &lt;CODE&gt;psrsvd_gc&lt;/CODE&gt;, but I couldn't use it. It wouldn't play nice and kept saying it was an internal field, or field was not available.&lt;/P&gt;

&lt;P&gt;How do I get the sum from summary index data?&lt;/P&gt;</description>
      <pubDate>Thu, 16 Sep 2010 09:41:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-can-t-I-sum-summary-data-from-sistats/m-p/51754#M12551</guid>
      <dc:creator>Jason</dc:creator>
      <dc:date>2010-09-16T09:41:21Z</dc:date>
    </item>
    <item>
      <title>Re: Why can't I sum summary data from sistats?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-can-t-I-sum-summary-data-from-sistats/m-p/51755#M12552</link>
      <description>&lt;P&gt;You're thinking about it too hard. By using &lt;CODE&gt;| sistats count by host, source, sourcetype&lt;/CODE&gt; before, just write a search that is &lt;CODE&gt;index=summary ... | stats count by orig_host, orig_source, orig_sourcetype, field1, field2&lt;/CODE&gt; and it will just work. The count will be there and you can sum it up from there. &lt;/P&gt;

&lt;P&gt;(Remember host, source, and sourcetype are rewritten when summarized, so use the &lt;CODE&gt;orig_&lt;/CODE&gt; fields.)&lt;/P&gt;</description>
      <pubDate>Thu, 16 Sep 2010 09:43:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-can-t-I-sum-summary-data-from-sistats/m-p/51755#M12552</guid>
      <dc:creator>Jason</dc:creator>
      <dc:date>2010-09-16T09:43:15Z</dc:date>
    </item>
    <item>
      <title>Re: Why can't I sum summary data from sistats?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-can-t-I-sum-summary-data-from-sistats/m-p/51756#M12553</link>
      <description>&lt;P&gt;I am having the same problem, but it is not with the metadata fields.&lt;/P&gt;

&lt;P&gt;eg: SI Search: .... | sistats count by protocol, action, src_bestmatch&lt;/P&gt;

&lt;P&gt;Search ON SI: ..... | stats sum(count) as count by protocol&lt;/P&gt;

&lt;P&gt;But again, the "count" from the second search is not available?? What is the solution to this?&lt;/P&gt;</description>
      <pubDate>Fri, 26 Aug 2011 15:27:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-can-t-I-sum-summary-data-from-sistats/m-p/51756#M12553</guid>
      <dc:creator>jdunlea_splunk</dc:creator>
      <dc:date>2011-08-26T15:27:54Z</dc:date>
    </item>
    <item>
      <title>Re: Why can't I sum summary data from sistats?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-can-t-I-sum-summary-data-from-sistats/m-p/51757#M12554</link>
      <description>&lt;P&gt;Again, you're thinking about it too hard. &lt;CODE&gt;sistats&lt;/CODE&gt; is supposed to make it easy. If you've used &lt;CODE&gt;sistats count by x&lt;/CODE&gt; to create the summary data, then you simply use &lt;CODE&gt;stats count by x&lt;/CODE&gt; to get the results back, &lt;EM&gt;not&lt;/EM&gt; &lt;CODE&gt;stats sum(count) by x&lt;/CODE&gt;.&lt;/P&gt;</description>
      <pubDate>Fri, 26 Aug 2011 16:43:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-can-t-I-sum-summary-data-from-sistats/m-p/51757#M12554</guid>
      <dc:creator>gkanapathy</dc:creator>
      <dc:date>2011-08-26T16:43:46Z</dc:date>
    </item>
    <item>
      <title>Re: Why can't I sum summary data from sistats?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-can-t-I-sum-summary-data-from-sistats/m-p/51758#M12555</link>
      <description>&lt;P&gt;I'm still confused.&lt;/P&gt;

&lt;P&gt;I have this to count the number of web categories and how much data was used for each:&lt;BR /&gt;
... | sistats count by webcategory,bytes&lt;/P&gt;

&lt;P&gt;When I run the following to get the amount of data per category:&lt;BR /&gt;
... | stats sum(bytes) by webcategory&lt;BR /&gt;
There is nothing displayed for bytes.&lt;/P&gt;

&lt;P&gt;When I run:&lt;BR /&gt;
... | stats count by bytes&lt;BR /&gt;
I get the count of how many times each bytes total was used but no web category correlation. &lt;/P&gt;

&lt;P&gt;If I can't use:&lt;BR /&gt;
... | stats sum(bytes) by webcategory&lt;BR /&gt;
how do I know how many bytes were used for each category? &lt;/P&gt;

&lt;P&gt;Should I be using:&lt;BR /&gt;
... | sistats sum(bytes) by webcategory&lt;/P&gt;</description>
      <pubDate>Mon, 16 Apr 2012 14:20:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-can-t-I-sum-summary-data-from-sistats/m-p/51758#M12555</guid>
      <dc:creator>peasead</dc:creator>
      <dc:date>2012-04-16T14:20:23Z</dc:date>
    </item>
  </channel>
</rss>

