<?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: CASE() search option produces no results in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/CASE-search-option-produces-no-results/m-p/166712#M47454</link>
    <description>&lt;P&gt;In my understanding, CASE does case-sensitive match for the a term/field values, which means it does a match for a complete word. So CASE(Exception) will match 'Exception' or 'Test.Exception.foo' but not 'OracleException' . _raw="&lt;EM&gt;Exception&lt;/EM&gt;" will match a portion of a term as well hence you're getting results there. Check if Exception is a complete word/term in your logs.&lt;/P&gt;</description>
    <pubDate>Wed, 26 Feb 2014 17:49:22 GMT</pubDate>
    <dc:creator>somesoni2</dc:creator>
    <dc:date>2014-02-26T17:49:22Z</dc:date>
    <item>
      <title>CASE() search option produces no results</title>
      <link>https://community.splunk.com/t5/Splunk-Search/CASE-search-option-produces-no-results/m-p/166710#M47452</link>
      <description>&lt;P&gt;While using the CASE() feature of the search command (as per &lt;A href="http://docs.splunk.com/Documentation/Splunk/6.0.2/Search/Usethesearchcommand#Use_CASE.28.29_and_TERM.28.29_to_match_phrases"&gt;http://docs.splunk.com/Documentation/Splunk/6.0.2/Search/Usethesearchcommand#Use_CASE.28.29_and_TERM.28.29_to_match_phrases&lt;/A&gt;) I'm seeing no events produced but there should be.&lt;/P&gt;

&lt;P&gt;Example:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;earliest=@h-15min latest=@h index=index1 OR index=index2 _raw="*Exception*"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;produces results.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;earliest=@h-15min latest=@h index=index1 OR index=index2 CASE(Exception)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;produces NO results.&lt;/P&gt;

&lt;P&gt;This seems to ONLY happen while using the string "Exception".  Other strings within the CASE() function are working as expected. &lt;/P&gt;

&lt;P&gt;This is on Splunk 6.0.2.&lt;/P&gt;

&lt;P&gt;Anyone seen this before?&lt;/P&gt;</description>
      <pubDate>Wed, 26 Feb 2014 16:33:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/CASE-search-option-produces-no-results/m-p/166710#M47452</guid>
      <dc:creator>sloshburch</dc:creator>
      <dc:date>2014-02-26T16:33:16Z</dc:date>
    </item>
    <item>
      <title>Re: CASE() search option produces no results</title>
      <link>https://community.splunk.com/t5/Splunk-Search/CASE-search-option-produces-no-results/m-p/166711#M47453</link>
      <description>&lt;P&gt;Is Exception surrounded by major breakers?&lt;/P&gt;</description>
      <pubDate>Wed, 26 Feb 2014 17:36:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/CASE-search-option-produces-no-results/m-p/166711#M47453</guid>
      <dc:creator>lukejadamec</dc:creator>
      <dc:date>2014-02-26T17:36:30Z</dc:date>
    </item>
    <item>
      <title>Re: CASE() search option produces no results</title>
      <link>https://community.splunk.com/t5/Splunk-Search/CASE-search-option-produces-no-results/m-p/166712#M47454</link>
      <description>&lt;P&gt;In my understanding, CASE does case-sensitive match for the a term/field values, which means it does a match for a complete word. So CASE(Exception) will match 'Exception' or 'Test.Exception.foo' but not 'OracleException' . _raw="&lt;EM&gt;Exception&lt;/EM&gt;" will match a portion of a term as well hence you're getting results there. Check if Exception is a complete word/term in your logs.&lt;/P&gt;</description>
      <pubDate>Wed, 26 Feb 2014 17:49:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/CASE-search-option-produces-no-results/m-p/166712#M47454</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2014-02-26T17:49:22Z</dc:date>
    </item>
    <item>
      <title>Re: CASE() search option produces no results</title>
      <link>https://community.splunk.com/t5/Splunk-Search/CASE-search-option-produces-no-results/m-p/166713#M47455</link>
      <description>&lt;P&gt;It's found preceded by letters org.something.somethingelse.somethingother.TypeOfException ending with a space or a :&lt;/P&gt;</description>
      <pubDate>Wed, 26 Feb 2014 17:49:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/CASE-search-option-produces-no-results/m-p/166713#M47455</guid>
      <dc:creator>sloshburch</dc:creator>
      <dc:date>2014-02-26T17:49:37Z</dc:date>
    </item>
    <item>
      <title>Re: CASE() search option produces no results</title>
      <link>https://community.splunk.com/t5/Splunk-Search/CASE-search-option-produces-no-results/m-p/166714#M47456</link>
      <description>&lt;P&gt;That is not going to work with case.  Read the bottom of the link you posted to see why.  Or - what somesoni2 said.&lt;/P&gt;</description>
      <pubDate>Wed, 26 Feb 2014 17:50:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/CASE-search-option-produces-no-results/m-p/166714#M47456</guid>
      <dc:creator>lukejadamec</dc:creator>
      <dc:date>2014-02-26T17:50:56Z</dc:date>
    </item>
    <item>
      <title>Re: CASE() search option produces no results</title>
      <link>https://community.splunk.com/t5/Splunk-Search/CASE-search-option-produces-no-results/m-p/166715#M47457</link>
      <description>&lt;P&gt;You might try TypeOfException&lt;/P&gt;</description>
      <pubDate>Wed, 26 Feb 2014 17:51:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/CASE-search-option-produces-no-results/m-p/166715#M47457</guid>
      <dc:creator>lukejadamec</dc:creator>
      <dc:date>2014-02-26T17:51:58Z</dc:date>
    </item>
    <item>
      <title>Re: CASE() search option produces no results</title>
      <link>https://community.splunk.com/t5/Splunk-Search/CASE-search-option-produces-no-results/m-p/166716#M47458</link>
      <description>&lt;P&gt;Or use CASE(*Exception*). this will work same as _raw="*Exception*", just it will be case-sensitive.&lt;/P&gt;</description>
      <pubDate>Wed, 26 Feb 2014 17:54:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/CASE-search-option-produces-no-results/m-p/166716#M47458</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2014-02-26T17:54:24Z</dc:date>
    </item>
    <item>
      <title>Re: CASE() search option produces no results</title>
      <link>https://community.splunk.com/t5/Splunk-Search/CASE-search-option-produces-no-results/m-p/166717#M47459</link>
      <description>&lt;P&gt;Thank you somesoni2 - I didn't realize it had that complete-word restriction.  I also thought I had previously tried wildcards with no luck. I now see wildcards work.&lt;/P&gt;

&lt;P&gt;Thanks everyone!&lt;/P&gt;</description>
      <pubDate>Wed, 26 Feb 2014 22:31:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/CASE-search-option-produces-no-results/m-p/166717#M47459</guid>
      <dc:creator>sloshburch</dc:creator>
      <dc:date>2014-02-26T22:31:30Z</dc:date>
    </item>
    <item>
      <title>Re: CASE() search option produces no results</title>
      <link>https://community.splunk.com/t5/Splunk-Search/CASE-search-option-produces-no-results/m-p/166718#M47460</link>
      <description>&lt;P&gt;See somesoni2's comment for the answer to this question.&lt;/P&gt;</description>
      <pubDate>Wed, 26 Feb 2014 22:31:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/CASE-search-option-produces-no-results/m-p/166718#M47460</guid>
      <dc:creator>sloshburch</dc:creator>
      <dc:date>2014-02-26T22:31:58Z</dc:date>
    </item>
  </channel>
</rss>

