<?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 write a query on SPL to have a flag when next value of an event is greater then the precedence value? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-do-i-write-a-query-on-SPL-to-have-a-flag-when-next-value-of/m-p/141064#M39041</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;| delta &lt;VALUE field=""&gt; &lt;/VALUE&gt;&lt;/LI&gt;
&lt;/UL&gt;

&lt;P&gt;then you can make a eval with if statement. eval result= if(delta=0, 0, 1)&lt;/P&gt;

&lt;P&gt;if the delta value is 0 assign 0 every other value assign 1&lt;/P&gt;

&lt;P&gt;br&lt;BR /&gt;
matthias&lt;/P&gt;</description>
    <pubDate>Wed, 13 Nov 2013 19:14:30 GMT</pubDate>
    <dc:creator>Matthias_BY</dc:creator>
    <dc:date>2013-11-13T19:14:30Z</dc:date>
    <item>
      <title>How do i write a query on SPL to have a flag when next value of an event is greater then the precedence value?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-i-write-a-query-on-SPL-to-have-a-flag-when-next-value-of/m-p/141063#M39040</link>
      <description>&lt;P&gt;How do i write a query on SPL to have a flag when next value on events is greater then the precedence value?   &lt;/P&gt;

&lt;P&gt;Hereby an example and the expected Result , values are from 1 to 100 and results should be zero or one when next value is greater then precedence value&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;gt;     event 1: value 1  [ Result:0]
&amp;gt;     event 2: value 2  [ Result:1]
&amp;gt;     event 3: value 2  [ Result:0]
&amp;gt;     event 4: value 2  [ Result:0]
&amp;gt;     event 5: value 3  [ Result:1]
&amp;gt;     event 6: value 3  [ Result:0]
&amp;gt;     event 7: value 1  [ Result:0]
&amp;gt;     event 8: value 1  [ Result:0]
&amp;gt;     event 9: value 2  [ Result:1]
&amp;gt;     event 10:value 2  [ Result:0]
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 13 Nov 2013 18:46:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-i-write-a-query-on-SPL-to-have-a-flag-when-next-value-of/m-p/141063#M39040</guid>
      <dc:creator>royimad</dc:creator>
      <dc:date>2013-11-13T18:46:00Z</dc:date>
    </item>
    <item>
      <title>Re: How do i write a query on SPL to have a flag when next value of an event is greater then the precedence value?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-i-write-a-query-on-SPL-to-have-a-flag-when-next-value-of/m-p/141064#M39041</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;| delta &lt;VALUE field=""&gt; &lt;/VALUE&gt;&lt;/LI&gt;
&lt;/UL&gt;

&lt;P&gt;then you can make a eval with if statement. eval result= if(delta=0, 0, 1)&lt;/P&gt;

&lt;P&gt;if the delta value is 0 assign 0 every other value assign 1&lt;/P&gt;

&lt;P&gt;br&lt;BR /&gt;
matthias&lt;/P&gt;</description>
      <pubDate>Wed, 13 Nov 2013 19:14:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-i-write-a-query-on-SPL-to-have-a-flag-when-next-value-of/m-p/141064#M39041</guid>
      <dc:creator>Matthias_BY</dc:creator>
      <dc:date>2013-11-13T19:14:30Z</dc:date>
    </item>
  </channel>
</rss>

