<?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 Summarize 15 minute intervals of cumulative input in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Summarize-15-minute-intervals-of-cumulative-input/m-p/76809#M19427</link>
    <description>&lt;P&gt;I have an input that's value is like an odometer so it's cumulative. I collect a sample every five minutes. If I want to create a timechart that shows the delta between those values at 15 minute intervals how would I do that? See example below.&lt;/P&gt;

&lt;P&gt;1/3/13 00:00:00 value=1084&lt;BR /&gt;
1/3/13 00:05:00 value=2420&lt;BR /&gt;
1/3/13 00:10:00 value=3247&lt;/P&gt;

&lt;P&gt;15 minute delta value = "2163"&lt;/P&gt;</description>
    <pubDate>Thu, 03 Jan 2013 16:01:32 GMT</pubDate>
    <dc:creator>jedatt01</dc:creator>
    <dc:date>2013-01-03T16:01:32Z</dc:date>
    <item>
      <title>Summarize 15 minute intervals of cumulative input</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Summarize-15-minute-intervals-of-cumulative-input/m-p/76809#M19427</link>
      <description>&lt;P&gt;I have an input that's value is like an odometer so it's cumulative. I collect a sample every five minutes. If I want to create a timechart that shows the delta between those values at 15 minute intervals how would I do that? See example below.&lt;/P&gt;

&lt;P&gt;1/3/13 00:00:00 value=1084&lt;BR /&gt;
1/3/13 00:05:00 value=2420&lt;BR /&gt;
1/3/13 00:10:00 value=3247&lt;/P&gt;

&lt;P&gt;15 minute delta value = "2163"&lt;/P&gt;</description>
      <pubDate>Thu, 03 Jan 2013 16:01:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Summarize-15-minute-intervals-of-cumulative-input/m-p/76809#M19427</guid>
      <dc:creator>jedatt01</dc:creator>
      <dc:date>2013-01-03T16:01:32Z</dc:date>
    </item>
    <item>
      <title>Re: Summarize 15 minute intervals of cumulative input</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Summarize-15-minute-intervals-of-cumulative-input/m-p/76810#M19428</link>
      <description>&lt;P&gt;Given this as example data :&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| gentimes start=-1 increment=5m | eval _time=starttime | eval value=floor(random()/100000000) | streamstats sum(value) as total | table _time total 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;You can use timechart and only select the 1st instance of 'total' in any 15 minute range :&lt;BR /&gt;&lt;BR /&gt;
(note: if the values are always cumulative, min(total) would also be valid to get the earliest value in the 15 minute range)&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | timechart span=15m first(total) as first_value
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;then work out the delta between these 2 15 minute intervals :&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | delta first_value as delta 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;then remove the 'first_value' field from the output &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | fields - first_value
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 03 Jan 2013 16:38:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Summarize-15-minute-intervals-of-cumulative-input/m-p/76810#M19428</guid>
      <dc:creator>jonuwz</dc:creator>
      <dc:date>2013-01-03T16:38:55Z</dc:date>
    </item>
  </channel>
</rss>

