<?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 Cumulate previous values in timechart in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Cumulate-previous-values-in-timechart/m-p/147758#M41301</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I'm looking for a function to cumulate previous values in a timechart. Means that I can see a real-time development of a software roll-out - distincted by a UID. The result should look as a ramp.&lt;/P&gt;

&lt;P&gt;My search string looks like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;sourcetype="foo" devicetype="Bob" | timechart dc(uid) as totale by boxsw | addtotals
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This table as an example of the desired results:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Time   # events   w/ new sw    cumulated
Day 1       128         128          128
Day 2       230         102          230
Day 3       220          78          308
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;So at Day 3 in the example, there are 308 devices with the new software AND it is clear to see, that it doesn't depend primary on how many events where registered.&lt;/P&gt;

&lt;P&gt;I just tried &lt;EM&gt;streamstats&lt;/EM&gt; like mentioned in the first comment (that was made according to a badly formulated question...), but it doesn't give me the result I need. (As a first step I would be happy, if there where any cumulated results)&lt;/P&gt;

&lt;P&gt;So, I'm looking forward to seeing an instructive answer to my question &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;Regards &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 19 Nov 2013 15:16:43 GMT</pubDate>
    <dc:creator>yAlff</dc:creator>
    <dc:date>2013-11-19T15:16:43Z</dc:date>
    <item>
      <title>Cumulate previous values in timechart</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Cumulate-previous-values-in-timechart/m-p/147758#M41301</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I'm looking for a function to cumulate previous values in a timechart. Means that I can see a real-time development of a software roll-out - distincted by a UID. The result should look as a ramp.&lt;/P&gt;

&lt;P&gt;My search string looks like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;sourcetype="foo" devicetype="Bob" | timechart dc(uid) as totale by boxsw | addtotals
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This table as an example of the desired results:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Time   # events   w/ new sw    cumulated
Day 1       128         128          128
Day 2       230         102          230
Day 3       220          78          308
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;So at Day 3 in the example, there are 308 devices with the new software AND it is clear to see, that it doesn't depend primary on how many events where registered.&lt;/P&gt;

&lt;P&gt;I just tried &lt;EM&gt;streamstats&lt;/EM&gt; like mentioned in the first comment (that was made according to a badly formulated question...), but it doesn't give me the result I need. (As a first step I would be happy, if there where any cumulated results)&lt;/P&gt;

&lt;P&gt;So, I'm looking forward to seeing an instructive answer to my question &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;Regards &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Nov 2013 15:16:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Cumulate-previous-values-in-timechart/m-p/147758#M41301</guid>
      <dc:creator>yAlff</dc:creator>
      <dc:date>2013-11-19T15:16:43Z</dc:date>
    </item>
    <item>
      <title>Re: Cumulate previous values in timechart</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Cumulate-previous-values-in-timechart/m-p/147759#M41302</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;

&lt;P&gt;As you are not providing any examples of the data or querys, I just can guess that you need to use the streamstats command:&lt;/P&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/6.0/SearchReference/Streamstats"&gt;http://docs.splunk.com/Documentation/Splunk/6.0/SearchReference/Streamstats&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Regards&lt;/P&gt;</description>
      <pubDate>Tue, 19 Nov 2013 15:19:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Cumulate-previous-values-in-timechart/m-p/147759#M41302</guid>
      <dc:creator>gfuente</dc:creator>
      <dc:date>2013-11-19T15:19:12Z</dc:date>
    </item>
    <item>
      <title>Re: Cumulate previous values in timechart</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Cumulate-previous-values-in-timechart/m-p/147760#M41303</link>
      <description>&lt;P&gt;Please apologize, I put my question in a hurry and didn't formulate it well. Please see my updated question.&lt;/P&gt;

&lt;P&gt;Thank you for your advise &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Nov 2013 10:54:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Cumulate-previous-values-in-timechart/m-p/147760#M41303</guid>
      <dc:creator>yAlff</dc:creator>
      <dc:date>2013-11-21T10:54:40Z</dc:date>
    </item>
    <item>
      <title>Re: Cumulate previous values in timechart</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Cumulate-previous-values-in-timechart/m-p/147761#M41304</link>
      <description>&lt;P&gt;Ok&lt;/P&gt;

&lt;P&gt;Now with this additional info, i think you can use the accum command, to calculate the 3º column:&lt;/P&gt;

&lt;P&gt;| accum thefielyouwanttoacummulate AS accumulated_field&lt;/P&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/6.0/SearchReference/Accum"&gt;http://docs.splunk.com/Documentation/Splunk/6.0/SearchReference/Accum&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Regards&lt;/P&gt;</description>
      <pubDate>Thu, 21 Nov 2013 11:03:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Cumulate-previous-values-in-timechart/m-p/147761#M41304</guid>
      <dc:creator>gfuente</dc:creator>
      <dc:date>2013-11-21T11:03:43Z</dc:date>
    </item>
  </channel>
</rss>

