<?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 cumulative sum in splunk in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/cumulative-sum-in-splunk/m-p/63070#M15571</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I have uploaded csv files for indexing  and creating reports.Here is the sample entries:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; Date          A  B  
 1.08.2013     8  17
 2.08.2013     9  15
 3.08.2013     11 20
 4.08.2013     8  18
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;and my expected result is &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; Date          A  B   Difference   Cumulative_sum
 1.08.2013     8  17   9                9
 2.08.2013     9  15   6                15
 3.08.2013     11 20   9                24
 4.08.2013     8  18   10               34 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Here i wanted to calculate cumulative sum and show it on a chart.Does splunk provide any direct function to calculate cumulative sum? How to do this?&lt;/P&gt;

&lt;P&gt;Thank you&lt;/P&gt;</description>
    <pubDate>Fri, 13 Sep 2013 09:50:38 GMT</pubDate>
    <dc:creator>shreeCS</dc:creator>
    <dc:date>2013-09-13T09:50:38Z</dc:date>
    <item>
      <title>cumulative sum in splunk</title>
      <link>https://community.splunk.com/t5/Splunk-Search/cumulative-sum-in-splunk/m-p/63070#M15571</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I have uploaded csv files for indexing  and creating reports.Here is the sample entries:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; Date          A  B  
 1.08.2013     8  17
 2.08.2013     9  15
 3.08.2013     11 20
 4.08.2013     8  18
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;and my expected result is &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; Date          A  B   Difference   Cumulative_sum
 1.08.2013     8  17   9                9
 2.08.2013     9  15   6                15
 3.08.2013     11 20   9                24
 4.08.2013     8  18   10               34 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Here i wanted to calculate cumulative sum and show it on a chart.Does splunk provide any direct function to calculate cumulative sum? How to do this?&lt;/P&gt;

&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Fri, 13 Sep 2013 09:50:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/cumulative-sum-in-splunk/m-p/63070#M15571</guid>
      <dc:creator>shreeCS</dc:creator>
      <dc:date>2013-09-13T09:50:38Z</dc:date>
    </item>
    <item>
      <title>Re: cumulative sum in splunk</title>
      <link>https://community.splunk.com/t5/Splunk-Search/cumulative-sum-in-splunk/m-p/63071#M15572</link>
      <description>&lt;P&gt;add this :&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| streamstats sum(Difference) as Cumulative_sum
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 13 Sep 2013 12:06:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/cumulative-sum-in-splunk/m-p/63071#M15572</guid>
      <dc:creator>jonuwz</dc:creator>
      <dc:date>2013-09-13T12:06:07Z</dc:date>
    </item>
    <item>
      <title>Re: cumulative sum in splunk</title>
      <link>https://community.splunk.com/t5/Splunk-Search/cumulative-sum-in-splunk/m-p/63072#M15573</link>
      <description>&lt;P&gt;yes,the above solution is working fine but if i want to calculate cumulative sum by host ,how to do that?&lt;BR /&gt;
 " |streamstats sum(difference) as cumulative_sum by host" doesn't work here&lt;/P&gt;</description>
      <pubDate>Sun, 15 Sep 2013 14:39:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/cumulative-sum-in-splunk/m-p/63072#M15573</guid>
      <dc:creator>shreeCS</dc:creator>
      <dc:date>2013-09-15T14:39:59Z</dc:date>
    </item>
    <item>
      <title>Re: cumulative sum in splunk</title>
      <link>https://community.splunk.com/t5/Splunk-Search/cumulative-sum-in-splunk/m-p/63073#M15574</link>
      <description>&lt;P&gt;Here i wanted to  show cumulative sum of each host on a chart.How to do that.If i take single host i'm able to do if there are multiple hosts,then how query should be modified?&lt;/P&gt;</description>
      <pubDate>Mon, 16 Sep 2013 04:19:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/cumulative-sum-in-splunk/m-p/63073#M15574</guid>
      <dc:creator>shreeCS</dc:creator>
      <dc:date>2013-09-16T04:19:52Z</dc:date>
    </item>
    <item>
      <title>Re: cumulative sum in splunk</title>
      <link>https://community.splunk.com/t5/Splunk-Search/cumulative-sum-in-splunk/m-p/63074#M15575</link>
      <description>&lt;P&gt;i come up with some solution query as given below,but here the problem is cumulative sum is in the reverse order i.e., if i take for August month data,for August 1st its 205 as cumulative sum and for August 31st 8 but this should be in a reverse order i.e ,August 1st 8 ,august2 19...august 31st 205 as a sum&lt;/P&gt;</description>
      <pubDate>Mon, 16 Sep 2013 04:42:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/cumulative-sum-in-splunk/m-p/63074#M15575</guid>
      <dc:creator>shreeCS</dc:creator>
      <dc:date>2013-09-16T04:42:30Z</dc:date>
    </item>
    <item>
      <title>Re: cumulative sum in splunk</title>
      <link>https://community.splunk.com/t5/Splunk-Search/cumulative-sum-in-splunk/m-p/63075#M15576</link>
      <description>&lt;P&gt;The query is &lt;BR /&gt;
"sourcetype="csv-5" | convert mstime(Out_Time_&lt;EM&gt;hh_mm&lt;/EM&gt;) AS outtime | convert mstime(In_Time_&lt;EM&gt;hh_mm&lt;/EM&gt;) AS intime |eval durationHrs=(outtime - intime )/60 | streamstats sum(durationHrs) as cumulativeSum by host | timechart values(cumulativeSum) by host "&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 14:46:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/cumulative-sum-in-splunk/m-p/63075#M15576</guid>
      <dc:creator>shreeCS</dc:creator>
      <dc:date>2020-09-28T14:46:45Z</dc:date>
    </item>
  </channel>
</rss>

