<?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 Eval=case not working in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Eval-case-not-working/m-p/312568#M93575</link>
    <description>&lt;P&gt;Probably a simple one but......my Eval case statement does not seem to work correctly &lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;...| eval operation=case(TagValue &amp;gt;0, "Running", True(), "Off") | table TagValue operation&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;When the TagValue is 0.00446 I am still getting "Running".  Any idea why?&lt;/P&gt;</description>
    <pubDate>Mon, 26 Feb 2018 12:18:51 GMT</pubDate>
    <dc:creator>stevenbutterwor</dc:creator>
    <dc:date>2018-02-26T12:18:51Z</dc:date>
    <item>
      <title>Eval=case not working</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Eval-case-not-working/m-p/312568#M93575</link>
      <description>&lt;P&gt;Probably a simple one but......my Eval case statement does not seem to work correctly &lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;...| eval operation=case(TagValue &amp;gt;0, "Running", True(), "Off") | table TagValue operation&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;When the TagValue is 0.00446 I am still getting "Running".  Any idea why?&lt;/P&gt;</description>
      <pubDate>Mon, 26 Feb 2018 12:18:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Eval-case-not-working/m-p/312568#M93575</guid>
      <dc:creator>stevenbutterwor</dc:creator>
      <dc:date>2018-02-26T12:18:51Z</dc:date>
    </item>
    <item>
      <title>Re: Eval=case not working</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Eval-case-not-working/m-p/312569#M93576</link>
      <description>&lt;P&gt;Because 0.00446 is larger than 0?&lt;/P&gt;</description>
      <pubDate>Mon, 26 Feb 2018 12:50:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Eval-case-not-working/m-p/312569#M93576</guid>
      <dc:creator>FrankVl</dc:creator>
      <dc:date>2018-02-26T12:50:19Z</dc:date>
    </item>
    <item>
      <title>Re: Eval=case not working</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Eval-case-not-working/m-p/312570#M93577</link>
      <description>&lt;P&gt;Hi @stevenbutterworth,&lt;/P&gt;

&lt;P&gt;As per condition defined in case, if TagValue is greater than 0 then "Running". And your  TagValue is 0.00446 So getting value  "Running" is proper.  Can you please clear me if I'm wrong..?&lt;/P&gt;</description>
      <pubDate>Mon, 26 Feb 2018 12:53:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Eval-case-not-working/m-p/312570#M93577</guid>
      <dc:creator>kamlesh_vaghela</dc:creator>
      <dc:date>2018-02-26T12:53:50Z</dc:date>
    </item>
    <item>
      <title>Re: Eval=case not working</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Eval-case-not-working/m-p/312571#M93578</link>
      <description>&lt;P&gt;Would agree on that. Also, for the case shown above, you can simply use &lt;CODE&gt;if()&lt;/CODE&gt; instead of &lt;CODE&gt;case()&lt;/CODE&gt; &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 26 Feb 2018 14:46:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Eval-case-not-working/m-p/312571#M93578</guid>
      <dc:creator>bjoernhansen</dc:creator>
      <dc:date>2018-02-26T14:46:32Z</dc:date>
    </item>
  </channel>
</rss>

