<?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: Splunk Case-Sensitive Search in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Splunk-Case-Sensitive-Search/m-p/157642#M44403</link>
    <description>&lt;P&gt;thanks man.  I forgot there is a difference between rex and regex.&lt;/P&gt;</description>
    <pubDate>Fri, 09 May 2014 13:34:11 GMT</pubDate>
    <dc:creator>mkarimi</dc:creator>
    <dc:date>2014-05-09T13:34:11Z</dc:date>
    <item>
      <title>Splunk Case-Sensitive Search</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-Case-Sensitive-Search/m-p/157635#M44396</link>
      <description>&lt;P&gt;I have some data that comes in with different values and need to point them out.  For example, the data can look like: &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;refRepId=36
OR
refrepid=125
or
refRepid=1245
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;1) for the first part, i need to look up anything that isn't refRepID.  so i ran &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;mysearch NOT CASE(refRepID) 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;but that didn't seem to do anything.  and i tried by running &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;mysearch CASE(refrepid) OR CASE(refRepid) 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;and those didn't do anyything either. (please keep in mind that refRepid and refrepid are not the only cases and there could be refrepID, rEfrepID, etc.)&lt;/P&gt;

&lt;P&gt;2) for the second part, Here are the rules which I’m trying to achieve:&lt;BR /&gt;
 1. All refRepId values&lt;BR /&gt;
 2. Of any case, EXCEPT for the exact casing “refRepId”&lt;BR /&gt;
 3. Which are not null -&amp;gt; some might have refrepid= OR refrepid=somecharacters.  &lt;/P&gt;

&lt;P&gt;P.S. my search needs to contain the phrase refrepid to narrow down the search.  so in reality mysearch="index=xx sourcetype=yy refrepid"&lt;/P&gt;</description>
      <pubDate>Thu, 08 May 2014 19:50:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-Case-Sensitive-Search/m-p/157635#M44396</guid>
      <dc:creator>mkarimi</dc:creator>
      <dc:date>2014-05-08T19:50:01Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Case-Sensitive Search</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-Case-Sensitive-Search/m-p/157636#M44397</link>
      <description>&lt;P&gt;Hmmm...what about something like...&lt;/P&gt;

&lt;P&gt;mysearch NOT refRepId=* (refrepid=* OR refRepid=*)&lt;/P&gt;

&lt;P&gt;It's not the most elegant solution, but you will filter out all the values with the casing you don't want, and enforce that the two casings you do want have values in them.&lt;/P&gt;</description>
      <pubDate>Thu, 08 May 2014 19:56:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-Case-Sensitive-Search/m-p/157636#M44397</guid>
      <dc:creator>BenjaminWyatt</dc:creator>
      <dc:date>2014-05-08T19:56:32Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Case-Sensitive Search</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-Case-Sensitive-Search/m-p/157637#M44398</link>
      <description>&lt;P&gt;well you can't do = just like that right? &lt;/P&gt;

&lt;P&gt;Error in 'search' command: Unable to parse the search: Comparator '=' is missing a term on the right hand side.&lt;/P&gt;

&lt;P&gt;also that won't work because it needs to be case-insensitive. Splunk thinks about all of those in the same manner&lt;/P&gt;</description>
      <pubDate>Thu, 08 May 2014 20:00:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-Case-Sensitive-Search/m-p/157637#M44398</guid>
      <dc:creator>mkarimi</dc:creator>
      <dc:date>2014-05-08T20:00:27Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Case-Sensitive Search</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-Case-Sensitive-Search/m-p/157638#M44399</link>
      <description>&lt;P&gt;p.s. my search needs to contain the phrase refrepid to narrow down the search.  so in reality mysearch="index=xx sourcetype=yy refrepid"&lt;/P&gt;</description>
      <pubDate>Thu, 08 May 2014 20:05:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-Case-Sensitive-Search/m-p/157638#M44399</guid>
      <dc:creator>mkarimi</dc:creator>
      <dc:date>2014-05-08T20:05:14Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Case-Sensitive Search</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-Case-Sensitive-Search/m-p/157639#M44400</link>
      <description>&lt;P&gt;try this&lt;/P&gt;

&lt;P&gt;index=xx sourcetype=yy refrepid NOT (refRepID=*)&lt;/P&gt;</description>
      <pubDate>Thu, 08 May 2014 21:19:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-Case-Sensitive-Search/m-p/157639#M44400</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2014-05-08T21:19:39Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Case-Sensitive Search</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-Case-Sensitive-Search/m-p/157640#M44401</link>
      <description>&lt;P&gt;Oh, whoops, formatting error. What I &lt;EM&gt;meant&lt;/EM&gt; to type was:&lt;/P&gt;

&lt;P&gt;mysearch NOT refRepId=* (refrepid=* OR refRepid=*)&lt;/P&gt;

&lt;P&gt;I'm not sure I understand it needing to be case-insensitive. Field names are case-sensitive in the search string...&lt;/P&gt;</description>
      <pubDate>Thu, 08 May 2014 21:20:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-Case-Sensitive-Search/m-p/157640#M44401</guid>
      <dc:creator>BenjaminWyatt</dc:creator>
      <dc:date>2014-05-08T21:20:53Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Case-Sensitive Search</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-Case-Sensitive-Search/m-p/157641#M44402</link>
      <description>&lt;P&gt;Here's what I'd try:&lt;/P&gt;

&lt;P&gt;1) look up anything except one particular case:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=xx sourcetype=yy refrepid | regex _raw!="refRepID="
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The search will load everything, and the &lt;CODE&gt;regex&lt;/CODE&gt; will throw out the one case you don't want to see.&lt;/P&gt;

&lt;P&gt;2) get all the values of any case except one particular case:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=xx sourcetype=yy refrepid | regex _raw!="refRepID=" | rex "(?i)refrepid=(?&amp;lt;insensitive_refredpid&amp;gt;\d+)"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Same as #1, except with an added extraction that ignores the case of the key before the equals sign and treats them all equally.&lt;/P&gt;</description>
      <pubDate>Thu, 08 May 2014 21:24:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-Case-Sensitive-Search/m-p/157641#M44402</guid>
      <dc:creator>martin_mueller</dc:creator>
      <dc:date>2014-05-08T21:24:13Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Case-Sensitive Search</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-Case-Sensitive-Search/m-p/157642#M44403</link>
      <description>&lt;P&gt;thanks man.  I forgot there is a difference between rex and regex.&lt;/P&gt;</description>
      <pubDate>Fri, 09 May 2014 13:34:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-Case-Sensitive-Search/m-p/157642#M44403</guid>
      <dc:creator>mkarimi</dc:creator>
      <dc:date>2014-05-09T13:34:11Z</dc:date>
    </item>
  </channel>
</rss>

