<?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 would you use if in this situation? in Splunk Dev</title>
    <link>https://community.splunk.com/t5/Splunk-Dev/How-would-you-use-if-in-this-situation/m-p/612057#M10746</link>
    <description>&lt;LI-CODE lang="markup"&gt;| streamstats window=1 current=f global=f earliest(data) as previous_data by car
| eval err=if(data&amp;gt;80 AND (isnull(previous_data) OR previous_data &amp;lt;=80), code, "")&lt;/LI-CODE&gt;</description>
    <pubDate>Tue, 06 Sep 2022 09:05:53 GMT</pubDate>
    <dc:creator>ITWhisperer</dc:creator>
    <dc:date>2022-09-06T09:05:53Z</dc:date>
    <item>
      <title>How would you use if in this situation?</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/How-would-you-use-if-in-this-situation/m-p/611886#M10743</link>
      <description>&lt;DIV&gt;&lt;DIV&gt;&lt;DIV class=""&gt;&lt;PRE&gt;| eval err=if(data&amp;gt;80,code,"") &lt;/PRE&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;DIV&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;I am composing spl using if statement. If the data value is over 80, a code is generated. However, if the value of 80 or more is maintained, a code is generated only at the starting value of 80 or more, and the code does not occur until it falls below 80. What should I do?&lt;/SPAN&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 05 Sep 2022 05:52:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/How-would-you-use-if-in-this-situation/m-p/611886#M10743</guid>
      <dc:creator>taehe</dc:creator>
      <dc:date>2022-09-05T05:52:59Z</dc:date>
    </item>
    <item>
      <title>Re: How would you use if in this situation?</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/How-would-you-use-if-in-this-situation/m-p/611888#M10744</link>
      <description>&lt;LI-CODE lang="markup"&gt;| streamstats window=1 current=f latest(data) as previous_data
| eval err=if(data&amp;gt;80 AND previous_data &amp;lt;= 80, code, "")&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 05 Sep 2022 05:58:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/How-would-you-use-if-in-this-situation/m-p/611888#M10744</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2022-09-05T05:58:29Z</dc:date>
    </item>
    <item>
      <title>Re: How would you use if in this situation?</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/How-would-you-use-if-in-this-situation/m-p/612013#M10745</link>
      <description>&lt;P&gt;thanks for good answer&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="taehe_0-1662431774063.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/21327iA21FF9928C51A159/image-size/medium?v=v2&amp;amp;px=400" role="button" title="taehe_0-1662431774063.png" alt="taehe_0-1662431774063.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;However, if the current SPL is used, the code does not start at the value above 80, but the code occurs before when it becomes less than 80. Can this be solved?&amp;nbsp;Since the data is different based on the car, the current spl is as follows.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| streamstats window=2 current=f earliest(data) as previous_data by car
| eval err=if(data&amp;gt;80 AND previous_data &amp;lt;=80, code, "")&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 06 Sep 2022 02:39:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/How-would-you-use-if-in-this-situation/m-p/612013#M10745</guid>
      <dc:creator>taehe</dc:creator>
      <dc:date>2022-09-06T02:39:45Z</dc:date>
    </item>
    <item>
      <title>Re: How would you use if in this situation?</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/How-would-you-use-if-in-this-situation/m-p/612057#M10746</link>
      <description>&lt;LI-CODE lang="markup"&gt;| streamstats window=1 current=f global=f earliest(data) as previous_data by car
| eval err=if(data&amp;gt;80 AND (isnull(previous_data) OR previous_data &amp;lt;=80), code, "")&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 06 Sep 2022 09:05:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/How-would-you-use-if-in-this-situation/m-p/612057#M10746</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2022-09-06T09:05:53Z</dc:date>
    </item>
  </channel>
</rss>

