<?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: Using the Summary Index for reporting in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Using-the-Summary-Index-for-reporting/m-p/18385#M2662</link>
    <description>&lt;P&gt;Generally you retrieve the data from the summary index using the &lt;CODE&gt;timechart&lt;/CODE&gt; or &lt;CODE&gt;stats&lt;/CODE&gt; search commands, specifying the fields and aggreators you want, e.g.:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=mysummaryindex source=mysummaryname | stats count(Firefox)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;or&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=mysummaryindex source=mysummaryname | timechart count(MSIE) as IECount, count(Windows) as Count_of_Windows
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Note that the &lt;CODE&gt;as&lt;/CODE&gt; variable clauses are basically ignored when &lt;CODE&gt;si-&lt;/CODE&gt; commands are used to populate a summary index.&lt;/P&gt;</description>
    <pubDate>Wed, 29 Dec 2010 03:51:51 GMT</pubDate>
    <dc:creator>gkanapathy</dc:creator>
    <dc:date>2010-12-29T03:51:51Z</dc:date>
    <item>
      <title>Using the Summary Index for reporting</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Using-the-Summary-Index-for-reporting/m-p/18384#M2661</link>
      <description>&lt;P&gt;I'm trying to make a UserAgent report on from a summary index that I'm populating with a count for each browser/os that hits IIS.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;sourcetype="iis*" earliest=-2h@h latest=-1h@h
|rex "(?i)\\(compatible;\\+MSIE(?P&amp;lt;MSIE&amp;gt;[^;]+)"
|rex "(?i)\\+Chrome/(?P&amp;lt;Chrome&amp;gt;[^\\+]+)"
|rex "(?i)\\+.*?Firefox/(?P&amp;lt;Firefox&amp;gt;\\d+\\.\\d+\\.\\d+)(?=\\+)"
|rex "(?i)\\+.*?;\\+\\w+\\+(?P&amp;lt;Windows&amp;gt;\\w+\\+\\d+\\.\\d+)(?=;)"
|rex "(?i)OS+\\+X\\+(?P&amp;lt;OSX&amp;gt;[^;]+)"
|rex "(?i)\\+Version/(?P&amp;lt;Safari&amp;gt;[^/]+)"
|rex "(?i)^(?:[^ ]* ){9}+Opera\\/(?P&amp;lt;Opera&amp;gt;[^\\(]+)"
|rex "(?i)\\+Ubuntu/(?P&amp;lt;Ubuntu&amp;gt;\\d+\\.\\d+)"
|sistats count(Firefox) as FFcnt, count(MSIE) as IEcnt, count(OSX) as OSXcnt, count(Windows) as Wincnt, count(Safari) as Safcnt, count(Chrome) as Chrcnt, count(Opera) as Oprcnt, count(Ubuntu) as Ubucnt, count(_raw) as rawcnt
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I can see that the search is running and populating the index with fields named "psrsvd_ct_Chrome" etc.  These however appear to be reserved for internal use by Splunk.&lt;/P&gt;

&lt;P&gt;How can I use this data now that I've added it to the Summary index?  Specifically, I want to run a timechart against it.  I'm using v4.1.6&lt;/P&gt;</description>
      <pubDate>Wed, 29 Dec 2010 03:24:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Using-the-Summary-Index-for-reporting/m-p/18384#M2661</guid>
      <dc:creator>Yancy</dc:creator>
      <dc:date>2010-12-29T03:24:43Z</dc:date>
    </item>
    <item>
      <title>Re: Using the Summary Index for reporting</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Using-the-Summary-Index-for-reporting/m-p/18385#M2662</link>
      <description>&lt;P&gt;Generally you retrieve the data from the summary index using the &lt;CODE&gt;timechart&lt;/CODE&gt; or &lt;CODE&gt;stats&lt;/CODE&gt; search commands, specifying the fields and aggreators you want, e.g.:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=mysummaryindex source=mysummaryname | stats count(Firefox)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;or&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=mysummaryindex source=mysummaryname | timechart count(MSIE) as IECount, count(Windows) as Count_of_Windows
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Note that the &lt;CODE&gt;as&lt;/CODE&gt; variable clauses are basically ignored when &lt;CODE&gt;si-&lt;/CODE&gt; commands are used to populate a summary index.&lt;/P&gt;</description>
      <pubDate>Wed, 29 Dec 2010 03:51:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Using-the-Summary-Index-for-reporting/m-p/18385#M2662</guid>
      <dc:creator>gkanapathy</dc:creator>
      <dc:date>2010-12-29T03:51:51Z</dc:date>
    </item>
  </channel>
</rss>

