<?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: Compare case-sensitivity of fields in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Compare-case-sensitivity-of-fields/m-p/502845#M139935</link>
    <description>&lt;P&gt;sorry not the regex - I already got the field reguardless of case but now I need to compare them .... &lt;/P&gt;</description>
    <pubDate>Tue, 24 Mar 2020 22:24:56 GMT</pubDate>
    <dc:creator>tb5821</dc:creator>
    <dc:date>2020-03-24T22:24:56Z</dc:date>
    <item>
      <title>Compare case-sensitivity of fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Compare-case-sensitivity-of-fields/m-p/502843#M139933</link>
      <description>&lt;P&gt;I'm using a rex to extract a field called field1 from my search... how do I take all the results of field1 and call out if they match on case or not? ie &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;_time   abc_123  
_time   ABC_123

_time   def_123
_time   def_123
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;first example I'd want to say there's a case diff while the second example is fine since the case's match&lt;/P&gt;</description>
      <pubDate>Tue, 24 Mar 2020 21:02:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Compare-case-sensitivity-of-fields/m-p/502843#M139933</guid>
      <dc:creator>tb5821</dc:creator>
      <dc:date>2020-03-24T21:02:13Z</dc:date>
    </item>
    <item>
      <title>Re: Compare case-sensitivity of fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Compare-case-sensitivity-of-fields/m-p/502844#M139934</link>
      <description>&lt;P&gt;try &lt;CODE&gt;(?i)&lt;/CODE&gt; option&lt;/P&gt;

&lt;P&gt;&lt;A href="https://www.pcre.org/original/doc/html/pcrepattern.html#SEC13"&gt;https://www.pcre.org/original/doc/html/pcrepattern.html#SEC13&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 24 Mar 2020 21:45:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Compare-case-sensitivity-of-fields/m-p/502844#M139934</guid>
      <dc:creator>to4kawa</dc:creator>
      <dc:date>2020-03-24T21:45:55Z</dc:date>
    </item>
    <item>
      <title>Re: Compare case-sensitivity of fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Compare-case-sensitivity-of-fields/m-p/502845#M139935</link>
      <description>&lt;P&gt;sorry not the regex - I already got the field reguardless of case but now I need to compare them .... &lt;/P&gt;</description>
      <pubDate>Tue, 24 Mar 2020 22:24:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Compare-case-sensitivity-of-fields/m-p/502845#M139935</guid>
      <dc:creator>tb5821</dc:creator>
      <dc:date>2020-03-24T22:24:56Z</dc:date>
    </item>
    <item>
      <title>Re: Compare case-sensitivity of fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Compare-case-sensitivity-of-fields/m-p/502846#M139936</link>
      <description>&lt;P&gt;The easiest thing is to do this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | eval field1lower=lower(field1)
| stats values(field1) values(field1lower) dc(field1) dc(field1lower)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;You can also use the &lt;CODE&gt;ignore-case&lt;/CODE&gt; modifier &lt;CODE&gt;(?i)&lt;/CODE&gt; for any &lt;CODE&gt;RegEx&lt;/CODE&gt;.&lt;/P&gt;</description>
      <pubDate>Tue, 24 Mar 2020 23:56:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Compare-case-sensitivity-of-fields/m-p/502846#M139936</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2020-03-24T23:56:52Z</dc:date>
    </item>
  </channel>
</rss>

