<?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 Using mean(x) in summary search run every 5 minutes - when running a report on summary index using mean(x) per day or month, will that give the same result? in Knowledge Management</title>
    <link>https://community.splunk.com/t5/Knowledge-Management/Using-mean-x-in-summary-search-run-every-5-minutes-when-running/m-p/134772#M1366</link>
    <description>&lt;P&gt;Hi - I need to calculate the mean(response time) for at complete month based on summary index.&lt;/P&gt;

&lt;P&gt;The summary index search has to run every 5 minutes - selecting last 5 minutes of data.&lt;/P&gt;

&lt;P&gt;The search will look like this: Search.... |sistats mean(response time) by xxx yyyy www ttt &lt;/P&gt;

&lt;P&gt;The monthly report search will look like this: index=summary REPORT=MEANRESP|timechart span=1month mean(response time) &lt;/P&gt;

&lt;P&gt;QUESTION: Will the search run on the summary index give the same result as if I made the search run on the actual transaction log?&lt;/P&gt;</description>
    <pubDate>Wed, 26 Nov 2014 10:11:10 GMT</pubDate>
    <dc:creator>JYTTEJ</dc:creator>
    <dc:date>2014-11-26T10:11:10Z</dc:date>
    <item>
      <title>Using mean(x) in summary search run every 5 minutes - when running a report on summary index using mean(x) per day or month, will that give the same result?</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/Using-mean-x-in-summary-search-run-every-5-minutes-when-running/m-p/134772#M1366</link>
      <description>&lt;P&gt;Hi - I need to calculate the mean(response time) for at complete month based on summary index.&lt;/P&gt;

&lt;P&gt;The summary index search has to run every 5 minutes - selecting last 5 minutes of data.&lt;/P&gt;

&lt;P&gt;The search will look like this: Search.... |sistats mean(response time) by xxx yyyy www ttt &lt;/P&gt;

&lt;P&gt;The monthly report search will look like this: index=summary REPORT=MEANRESP|timechart span=1month mean(response time) &lt;/P&gt;

&lt;P&gt;QUESTION: Will the search run on the summary index give the same result as if I made the search run on the actual transaction log?&lt;/P&gt;</description>
      <pubDate>Wed, 26 Nov 2014 10:11:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/Using-mean-x-in-summary-search-run-every-5-minutes-when-running/m-p/134772#M1366</guid>
      <dc:creator>JYTTEJ</dc:creator>
      <dc:date>2014-11-26T10:11:10Z</dc:date>
    </item>
    <item>
      <title>Re: Using mean(x) in summary search run every 5 minutes - when running a report on summary index using mean(x) per day or month, will that give the same result?</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/Using-mean-x-in-summary-search-run-every-5-minutes-when-running/m-p/134773#M1367</link>
      <description>&lt;P&gt;There will be some differences (magnitude depend upon the data) as there will be little rounding in mean calculation of summary indexes and subsequent mean calculation during data fetch from. See this runanywhere search example and compare the results.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;SET 1
simulating summary index
| gentimes start=-1 | eval temp=mvrange(1,200,2) | table temp | mvexpand temp | eval data=temp+1 | bucket span=5s data | stats mean(temp) as temp by data | stats mean(temp) as temp

Direct calculation
| gentimes start=-1 | eval temp=mvrange(1,200,2) | table temp | mvexpand temp | eval data=temp+1 | stats mean(data) as temp

SET 2
simulating summary index
| gentimes start=-1 | eval temp=mvrange(2,200,2) | table temp | mvexpand temp | eval data=temp+1 | bucket span=5s data | stats mean(temp) as temp by data | stats mean(temp) as temp

Direct calculation
| gentimes start=-1 | eval temp=mvrange(2,200,2) | table temp | mvexpand temp | eval data=temp+1 | stats mean(data) as temp
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 26 Nov 2014 14:59:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/Using-mean-x-in-summary-search-run-every-5-minutes-when-running/m-p/134773#M1367</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2014-11-26T14:59:22Z</dc:date>
    </item>
  </channel>
</rss>

