<?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: How to create A new field which creates accumulative results from current and previous records of different field in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-A-new-field-which-creates-accumulative-results/m-p/504573#M140906</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/64721"&gt;@priyaramki16&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Take a look at streamstats:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.splunk.com/Documentation/Splunk/8.0.4/SearchReference/Streamstats" target="_blank" rel="noopener"&gt;https://docs.splunk.com/Documentation/Splunk/8.0.4/SearchReference/Streamstats&lt;/A&gt;&lt;/P&gt;&lt;P&gt;In your case, something like the following should do the trick:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;your query here
| sort limit=0 "Calendar Week"
| streamstats sum(count) as Cumulative_Count&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope that helps&lt;/P&gt;</description>
    <pubDate>Tue, 16 Jun 2020 13:29:23 GMT</pubDate>
    <dc:creator>javiergn</dc:creator>
    <dc:date>2020-06-16T13:29:23Z</dc:date>
    <item>
      <title>How to create A new field which creates accumulative results from current and previous records of different field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-A-new-field-which-creates-accumulative-results/m-p/504571#M140905</link>
      <description>&lt;P&gt;I have a two fields Calendar_week, Count...&lt;/P&gt;&lt;P&gt;I am trying to create a New field as Cumulative count which will add the previous cumulative count with Current Count.&lt;/P&gt;&lt;P&gt;For eg&amp;nbsp;&lt;/P&gt;&lt;P&gt;Calender_week----Count----Cumulative_Count&lt;/P&gt;&lt;P&gt;1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ---- 0&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ----0&lt;/P&gt;&lt;P&gt;2&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ---- 1 &amp;nbsp; &amp;nbsp; &amp;nbsp; ----1&lt;/P&gt;&lt;P&gt;3 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ---- 2 &amp;nbsp; &amp;nbsp; &amp;nbsp; ----3&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a search which could do this..&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Tue, 16 Jun 2020 09:52:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-create-A-new-field-which-creates-accumulative-results/m-p/504571#M140905</guid>
      <dc:creator>priyaramki16</dc:creator>
      <dc:date>2020-06-16T09:52:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to create A new field which creates accumulative results from current and previous records of different field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-A-new-field-which-creates-accumulative-results/m-p/504573#M140906</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/64721"&gt;@priyaramki16&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Take a look at streamstats:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.splunk.com/Documentation/Splunk/8.0.4/SearchReference/Streamstats" target="_blank" rel="noopener"&gt;https://docs.splunk.com/Documentation/Splunk/8.0.4/SearchReference/Streamstats&lt;/A&gt;&lt;/P&gt;&lt;P&gt;In your case, something like the following should do the trick:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;your query here
| sort limit=0 "Calendar Week"
| streamstats sum(count) as Cumulative_Count&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope that helps&lt;/P&gt;</description>
      <pubDate>Tue, 16 Jun 2020 13:29:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-create-A-new-field-which-creates-accumulative-results/m-p/504573#M140906</guid>
      <dc:creator>javiergn</dc:creator>
      <dc:date>2020-06-16T13:29:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to create A new field which creates accumulative results from current and previous records of different field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-A-new-field-which-creates-accumulative-results/m-p/504576#M140907</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/113132"&gt;@javiergn&lt;/a&gt;&amp;nbsp;...the query you suggested produced a field which is same as count but with first row not filled...&lt;/P&gt;&lt;P&gt;the addition did not happen&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="priyaramki16_0-1592303324342.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/9201i10A35FFDD3F0BF05/image-size/medium?v=v2&amp;amp;px=400" role="button" title="priyaramki16_0-1592303324342.png" alt="priyaramki16_0-1592303324342.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 16 Jun 2020 10:29:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-create-A-new-field-which-creates-accumulative-results/m-p/504576#M140907</guid>
      <dc:creator>priyaramki16</dc:creator>
      <dc:date>2020-06-16T10:29:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to create A new field which creates accumulative results from current and previous records of different field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-A-new-field-which-creates-accumulative-results/m-p/504608#M140917</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/64721"&gt;@priyaramki16&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I made a typo on my answer as I didn't have a lab to check my syntax. See the answer above again.&lt;/P&gt;&lt;P&gt;By the way, make sure your sort is working fine as there seems to be a trailing space in your query between "Calendar" and "Week"&lt;/P&gt;</description>
      <pubDate>Tue, 16 Jun 2020 13:27:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-create-A-new-field-which-creates-accumulative-results/m-p/504608#M140917</guid>
      <dc:creator>javiergn</dc:creator>
      <dc:date>2020-06-16T13:27:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to create A new field which creates accumulative results from current and previous records of different field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-A-new-field-which-creates-accumulative-results/m-p/504613#M140920</link>
      <description>&lt;P&gt;Thanks!! It worked!!&lt;/P&gt;</description>
      <pubDate>Tue, 16 Jun 2020 13:43:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-create-A-new-field-which-creates-accumulative-results/m-p/504613#M140920</guid>
      <dc:creator>priyaramki16</dc:creator>
      <dc:date>2020-06-16T13:43:26Z</dc:date>
    </item>
  </channel>
</rss>

