<?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 edit my eval case statement to exclude certain text from a field's value? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-edit-my-eval-case-statement-to-exclude-certain-text-from/m-p/213169#M62515</link>
    <description>&lt;P&gt;not working &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;BR /&gt;
getting the following error.&lt;BR /&gt;
 Typechecking failed. 'OR' only takes boolean arguments.&lt;/P&gt;</description>
    <pubDate>Mon, 07 Nov 2016 13:24:47 GMT</pubDate>
    <dc:creator>nivethainspire_</dc:creator>
    <dc:date>2016-11-07T13:24:47Z</dc:date>
    <item>
      <title>How to edit my eval case statement to exclude certain text from a field's value?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-edit-my-eval-case-statement-to-exclude-certain-text-from/m-p/213167#M62513</link>
      <description>&lt;P&gt;My field has following value&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;summary="java running in chrome"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I need a search such that summary should have the word "java" and shouldn't have "chrome", "firefox".&lt;/P&gt;

&lt;P&gt;My search is :&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;|eval Application = case(Summary like "%Java%"  NOT "%chrome%" NOT "%firefox%","Java",Summary like "%flash%","flash")
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;but it is not working. Can anyone guide me?&lt;/P&gt;</description>
      <pubDate>Mon, 07 Nov 2016 11:17:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-edit-my-eval-case-statement-to-exclude-certain-text-from/m-p/213167#M62513</guid>
      <dc:creator>nivethainspire_</dc:creator>
      <dc:date>2016-11-07T11:17:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to edit my eval case statement to exclude certain text from a field's value?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-edit-my-eval-case-statement-to-exclude-certain-text-from/m-p/213168#M62514</link>
      <description>&lt;P&gt;NOT keyword in not supported for case statement, so use ! instead for performing not expression. &lt;/P&gt;

&lt;P&gt;|eval Application = case(Summary like "%Java%" &lt;STRONG&gt;AND ! ( Summary  like "%chrome%" OR Summary like "%firefox%")&lt;/STRONG&gt;,"Java",Summary like "%flash%","flash")&lt;/P&gt;</description>
      <pubDate>Mon, 07 Nov 2016 12:35:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-edit-my-eval-case-statement-to-exclude-certain-text-from/m-p/213168#M62514</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2016-11-07T12:35:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to edit my eval case statement to exclude certain text from a field's value?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-edit-my-eval-case-statement-to-exclude-certain-text-from/m-p/213169#M62515</link>
      <description>&lt;P&gt;not working &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;BR /&gt;
getting the following error.&lt;BR /&gt;
 Typechecking failed. 'OR' only takes boolean arguments.&lt;/P&gt;</description>
      <pubDate>Mon, 07 Nov 2016 13:24:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-edit-my-eval-case-statement-to-exclude-certain-text-from/m-p/213169#M62515</guid>
      <dc:creator>nivethainspire_</dc:creator>
      <dc:date>2016-11-07T13:24:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to edit my eval case statement to exclude certain text from a field's value?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-edit-my-eval-case-statement-to-exclude-certain-text-from/m-p/213170#M62516</link>
      <description>&lt;P&gt;I have edited my answer as I was missing &lt;STRONG&gt;Summary like&lt;/STRONG&gt; conditions in the not condition. Can you please retry the above and confirm?&lt;/P&gt;</description>
      <pubDate>Mon, 07 Nov 2016 14:48:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-edit-my-eval-case-statement-to-exclude-certain-text-from/m-p/213170#M62516</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2016-11-07T14:48:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to edit my eval case statement to exclude certain text from a field's value?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-edit-my-eval-case-statement-to-exclude-certain-text-from/m-p/213171#M62517</link>
      <description>&lt;P&gt;Try something like this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;your current search
|eval Application = case(match(Summary,"Java") AND NOT (match(Summary,"chrome") OR match(Summary,"firefox")), "Java" ,match(Summary,"flash"),"flash", true(),"other")
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 07 Nov 2016 15:35:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-edit-my-eval-case-statement-to-exclude-certain-text-from/m-p/213171#M62517</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2016-11-07T15:35:54Z</dc:date>
    </item>
  </channel>
</rss>

