<?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 do I prevent initial delta value from breaking my visualization? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-prevent-initial-delta-value-from-breaking-my/m-p/205513#M59746</link>
    <description>&lt;P&gt;Try this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;sourcetype=abc SCTP host="abc.com" | bucket span=5m _time | stats max(field1) as field1 max(field2) as field2 by _time
| delta field1 as field1d
| delta field2 as field2d
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Wed, 21 Sep 2016 20:54:30 GMT</pubDate>
    <dc:creator>somesoni2</dc:creator>
    <dc:date>2016-09-21T20:54:30Z</dc:date>
    <item>
      <title>How do I prevent initial delta value from breaking my visualization?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-prevent-initial-delta-value-from-breaking-my/m-p/205511#M59744</link>
      <description>&lt;P&gt;I am trying to get the delta of several key-value pairs over a period of an hour.  The initial ingestion of data is from a few hours ago yet the earliest time slot for this timechart is empty and the second one has the full value (not the delta) causing my visualizations to be unreadable.  I see what its doing - its basically trying to get the previous value for the earliest time slot for the time I've specified, seeing it empty and giving me the delta of the full value but I need it to recognize the previous value, instead of it being blank.&lt;/P&gt;

&lt;P&gt;Here is a template for my query:&lt;BR /&gt;
sourcetype=abc SCTP  host="abc.com"&lt;BR /&gt;&lt;BR /&gt;
| timechart span=5m max(field1) as field1 max(field2) as field2 &lt;BR /&gt;
| delta field1 as field1d&lt;BR /&gt;
| delta field2 as field2d&lt;/P&gt;

&lt;P&gt;So my output in stats is :&lt;BR /&gt;
FIRST ROW TIMESLOT:  BLANK&lt;BR /&gt;
SECOND ROW TIMESLOT:  field1=2000   field2=5000&lt;BR /&gt;
THIRD ROW TIMESLOT: field1=0  field2=3&lt;/P&gt;

&lt;P&gt;So now my visualization is unreadable...&lt;/P&gt;</description>
      <pubDate>Wed, 21 Sep 2016 20:26:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-prevent-initial-delta-value-from-breaking-my/m-p/205511#M59744</guid>
      <dc:creator>EricLloyd79</dc:creator>
      <dc:date>2016-09-21T20:26:38Z</dc:date>
    </item>
    <item>
      <title>Re: How do I prevent initial delta value from breaking my visualization?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-prevent-initial-delta-value-from-breaking-my/m-p/205512#M59745</link>
      <description>&lt;P&gt;Are these values for &lt;CODE&gt;field1d&lt;/CODE&gt; or &lt;CODE&gt;field1&lt;/CODE&gt;? Why is the first timeslot blank for &lt;CODE&gt;field1&lt;/CODE&gt;? I can understand it being blank for &lt;CODE&gt;field1d&lt;/CODE&gt;. What would you like the "previous value" for the first row be?&lt;/P&gt;</description>
      <pubDate>Wed, 21 Sep 2016 20:54:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-prevent-initial-delta-value-from-breaking-my/m-p/205512#M59745</guid>
      <dc:creator>sundareshr</dc:creator>
      <dc:date>2016-09-21T20:54:04Z</dc:date>
    </item>
    <item>
      <title>Re: How do I prevent initial delta value from breaking my visualization?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-prevent-initial-delta-value-from-breaking-my/m-p/205513#M59746</link>
      <description>&lt;P&gt;Try this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;sourcetype=abc SCTP host="abc.com" | bucket span=5m _time | stats max(field1) as field1 max(field2) as field2 by _time
| delta field1 as field1d
| delta field2 as field2d
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 21 Sep 2016 20:54:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-prevent-initial-delta-value-from-breaking-my/m-p/205513#M59746</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2016-09-21T20:54:30Z</dc:date>
    </item>
  </channel>
</rss>

