<?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 How to keep a cumulative value of a field that occasionally resets to 0 in the source in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-keep-a-cumulative-value-of-a-field-that-occasionally/m-p/430554#M123095</link>
    <description>&lt;P&gt;Hi,&lt;BR /&gt;
I have a cumulative counter in a .csv log, the issue is, the software generating the .csv resets this counter from time to time.&lt;/P&gt;

&lt;P&gt;The file looks like this, the counter is the second value.&lt;BR /&gt;
1005 ,4400.00,&lt;BR /&gt;
1005 ,4450.00, &lt;BR /&gt;
1005 ,0.00, &lt;BR /&gt;
1005 ,0.01, &lt;BR /&gt;
1005 ,30.00, &lt;/P&gt;

&lt;P&gt;What I look for is away to obtain the value of the counter disregarding resets, so in the example that would be 4480.01&lt;/P&gt;

&lt;P&gt;I guess this can be done by summing the delta from last to previous value,  however I have no Idea how to tell Splunk to ignore the delta when the last value is 0, and resume counting with the last high/non-zero value.&lt;/P&gt;

&lt;P&gt;Thanks for the help, L&lt;/P&gt;</description>
    <pubDate>Fri, 19 Oct 2018 08:02:17 GMT</pubDate>
    <dc:creator>lbentin</dc:creator>
    <dc:date>2018-10-19T08:02:17Z</dc:date>
    <item>
      <title>How to keep a cumulative value of a field that occasionally resets to 0 in the source</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-keep-a-cumulative-value-of-a-field-that-occasionally/m-p/430554#M123095</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;
I have a cumulative counter in a .csv log, the issue is, the software generating the .csv resets this counter from time to time.&lt;/P&gt;

&lt;P&gt;The file looks like this, the counter is the second value.&lt;BR /&gt;
1005 ,4400.00,&lt;BR /&gt;
1005 ,4450.00, &lt;BR /&gt;
1005 ,0.00, &lt;BR /&gt;
1005 ,0.01, &lt;BR /&gt;
1005 ,30.00, &lt;/P&gt;

&lt;P&gt;What I look for is away to obtain the value of the counter disregarding resets, so in the example that would be 4480.01&lt;/P&gt;

&lt;P&gt;I guess this can be done by summing the delta from last to previous value,  however I have no Idea how to tell Splunk to ignore the delta when the last value is 0, and resume counting with the last high/non-zero value.&lt;/P&gt;

&lt;P&gt;Thanks for the help, L&lt;/P&gt;</description>
      <pubDate>Fri, 19 Oct 2018 08:02:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-keep-a-cumulative-value-of-a-field-that-occasionally/m-p/430554#M123095</guid>
      <dc:creator>lbentin</dc:creator>
      <dc:date>2018-10-19T08:02:17Z</dc:date>
    </item>
  </channel>
</rss>

