<?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: Ignoring Case on field values in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Ignoring-Case-on-field-values/m-p/107815#M28040</link>
    <description>&lt;P&gt;Splunk is not case sensitive when it comes to field values so we can extract fields with mixed case and not worry about searching. &lt;BR /&gt;
In other words, these searches would all return the same results:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;technology=Audio
technology=AUDIO
technology=audio
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;STRONG&gt;NB:&lt;/STRONG&gt;  Fields are case sensitive, but the values are not.  So these searches would &lt;STRONG&gt;NOT&lt;/STRONG&gt; return the same result:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Technology=audio
TECHNOLOGY=audio
technology=audio
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;For reporting purposes, you may wish to show a consistent value.  In this case, we can use the lower() or upper() functions of eval.  &lt;/P&gt;

&lt;P&gt;This will return &lt;EM&gt;audio&lt;/EM&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;technology=AUDIO | eval technology=lower(technology)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This will return &lt;EM&gt;Audio&lt;/EM&gt; &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | eval technology = if(len(technology)&amp;gt;0,upper(substr(technology,1,1)) + lower(substr(technology,2,len(technology))),technology)
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Mon, 23 May 2011 20:38:13 GMT</pubDate>
    <dc:creator>bwooden</dc:creator>
    <dc:date>2011-05-23T20:38:13Z</dc:date>
    <item>
      <title>Ignoring Case on field values</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Ignoring-Case-on-field-values/m-p/107813#M28038</link>
      <description>&lt;P&gt;Im extracting values on a field with this Reg ex:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;technology[^&amp;gt;]*&amp;gt;(?P&amp;lt;Technology&amp;gt;[^&amp;lt;]+)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;It returns different values when uppercase and lowercase,, for example:&lt;BR /&gt;
Audio&lt;BR /&gt;
AUDIO&lt;BR /&gt;
audio&lt;/P&gt;

&lt;P&gt;How can I make it ignore the Case?&lt;BR /&gt;
Thanks guys!!&lt;/P&gt;</description>
      <pubDate>Mon, 23 May 2011 20:07:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Ignoring-Case-on-field-values/m-p/107813#M28038</guid>
      <dc:creator>DotTest37</dc:creator>
      <dc:date>2011-05-23T20:07:22Z</dc:date>
    </item>
    <item>
      <title>Re: Ignoring Case on field values</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Ignoring-Case-on-field-values/m-p/107814#M28039</link>
      <description>&lt;P&gt;You can have your regex ignore case with "(?i)" at the beginning of the line.&lt;/P&gt;

&lt;P&gt;If your question is about how to have the value normalized to one value, try:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; ... | eval Technology=lower(Technology)
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 23 May 2011 20:35:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Ignoring-Case-on-field-values/m-p/107814#M28039</guid>
      <dc:creator>carasso</dc:creator>
      <dc:date>2011-05-23T20:35:17Z</dc:date>
    </item>
    <item>
      <title>Re: Ignoring Case on field values</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Ignoring-Case-on-field-values/m-p/107815#M28040</link>
      <description>&lt;P&gt;Splunk is not case sensitive when it comes to field values so we can extract fields with mixed case and not worry about searching. &lt;BR /&gt;
In other words, these searches would all return the same results:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;technology=Audio
technology=AUDIO
technology=audio
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;STRONG&gt;NB:&lt;/STRONG&gt;  Fields are case sensitive, but the values are not.  So these searches would &lt;STRONG&gt;NOT&lt;/STRONG&gt; return the same result:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Technology=audio
TECHNOLOGY=audio
technology=audio
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;For reporting purposes, you may wish to show a consistent value.  In this case, we can use the lower() or upper() functions of eval.  &lt;/P&gt;

&lt;P&gt;This will return &lt;EM&gt;audio&lt;/EM&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;technology=AUDIO | eval technology=lower(technology)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This will return &lt;EM&gt;Audio&lt;/EM&gt; &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | eval technology = if(len(technology)&amp;gt;0,upper(substr(technology,1,1)) + lower(substr(technology,2,len(technology))),technology)
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 23 May 2011 20:38:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Ignoring-Case-on-field-values/m-p/107815#M28040</guid>
      <dc:creator>bwooden</dc:creator>
      <dc:date>2011-05-23T20:38:13Z</dc:date>
    </item>
  </channel>
</rss>

