<?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 evaluate an arithmetic difference between  two consecutive events in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-evaluate-an-arithmetic-difference-between-two-consecutive/m-p/46074#M11004</link>
    <description>&lt;P&gt;The last two results (after diffsent&amp;gt;5 filter) would look like:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| delta Total_Sent AS diffsent | search diffsent &amp;gt; 5 | head 2
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The last two events would look like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| head 2 | delta Total_Sent AS diffsent | search diffsent &amp;gt; 5
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Tue, 24 Jan 2017 19:52:33 GMT</pubDate>
    <dc:creator>alanden_splunk</dc:creator>
    <dc:date>2017-01-24T19:52:33Z</dc:date>
    <item>
      <title>How to evaluate an arithmetic difference between  two consecutive events</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-evaluate-an-arithmetic-difference-between-two-consecutive/m-p/46071#M11001</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;

&lt;P&gt;I would like to evaluate the difference between two events (in theory the events contain completely different data). Let's say I have the following events:&lt;/P&gt;

&lt;P&gt;timestap1 81         115       42683        1267           0           0&lt;BR /&gt;
timestap2 81         107       42683        1267           0           0&lt;/P&gt;

&lt;P&gt;the third column corresponds to the field Total_Sent and I want to raise an alert if the field is not growing. How can I do: Toal_Sent1 - Total_Sent2 (in my case 42683 - 42683) and check if the result is greater than 5 ?&lt;/P&gt;

&lt;P&gt;Thanks from a splunk newbie&lt;/P&gt;</description>
      <pubDate>Wed, 08 Sep 2010 21:40:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-evaluate-an-arithmetic-difference-between-two-consecutive/m-p/46071#M11001</guid>
      <dc:creator>rootto</dc:creator>
      <dc:date>2010-09-08T21:40:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to evaluate an arithmetic difference between  two consecutive events</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-evaluate-an-arithmetic-difference-between-two-consecutive/m-p/46072#M11002</link>
      <description>&lt;P&gt;Have you tried the "delta" search operator?  &lt;/P&gt;

&lt;P&gt;&lt;A href="http://www.splunk.com/base/Documentation/latest/SearchReference/Delta" rel="nofollow"&gt;http://www.splunk.com/base/Documentation/latest/SearchReference/Delta&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Delta will find the different between the same extracted field in consecutive events.  You will probably need to define field extractions for your fields in order to be able to use delta against them.&lt;/P&gt;</description>
      <pubDate>Wed, 08 Sep 2010 21:50:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-evaluate-an-arithmetic-difference-between-two-consecutive/m-p/46072#M11002</guid>
      <dc:creator>dwaddle</dc:creator>
      <dc:date>2010-09-08T21:50:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to evaluate an arithmetic difference between  two consecutive events</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-evaluate-an-arithmetic-difference-between-two-consecutive/m-p/46073#M11003</link>
      <description>&lt;P&gt;Thanks I implemented it doing &lt;/P&gt;

&lt;P&gt;| delta Total_Sent AS diffsent | search diffsent &amp;gt; 5 &lt;/P&gt;

&lt;P&gt;and it works. Do you know if I can limit the search to the last two events? I tried to pipe | head 2 | but it doesn't help.&lt;/P&gt;

&lt;P&gt;Thanks again&lt;/P&gt;</description>
      <pubDate>Wed, 08 Sep 2010 23:35:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-evaluate-an-arithmetic-difference-between-two-consecutive/m-p/46073#M11003</guid>
      <dc:creator>rootto</dc:creator>
      <dc:date>2010-09-08T23:35:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to evaluate an arithmetic difference between  two consecutive events</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-evaluate-an-arithmetic-difference-between-two-consecutive/m-p/46074#M11004</link>
      <description>&lt;P&gt;The last two results (after diffsent&amp;gt;5 filter) would look like:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| delta Total_Sent AS diffsent | search diffsent &amp;gt; 5 | head 2
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The last two events would look like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| head 2 | delta Total_Sent AS diffsent | search diffsent &amp;gt; 5
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 24 Jan 2017 19:52:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-evaluate-an-arithmetic-difference-between-two-consecutive/m-p/46074#M11004</guid>
      <dc:creator>alanden_splunk</dc:creator>
      <dc:date>2017-01-24T19:52:33Z</dc:date>
    </item>
  </channel>
</rss>

