<?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 Changing default field case sensitivity in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Changing-default-field-case-sensitivity/m-p/24740#M4588</link>
    <description>&lt;P&gt;All,&lt;/P&gt;

&lt;P&gt;I'm wondering if there is a way to change my configuration files to ignore the capitalization of a field.  For example, I would want &lt;SAMP&gt;myField&lt;/SAMP&gt; and &lt;SAMP&gt;MyField&lt;/SAMP&gt; to both show up if my search is something like:&lt;/P&gt;

&lt;PRE&gt;sourcetype="mysource" myField="SomeValue"&lt;/PRE&gt;

&lt;P&gt;I know there are workarounds for this (e.g. &lt;SAMP&gt;rename&lt;/SAMP&gt; and evaluating into a new field), but I was wondering if there is any easier way to handle this case.  Ideally, I could set this in a conf file.&lt;/P&gt;

&lt;P&gt;Thanks!&lt;/P&gt;</description>
    <pubDate>Mon, 05 Aug 2013 14:19:49 GMT</pubDate>
    <dc:creator>bruceclarke</dc:creator>
    <dc:date>2013-08-05T14:19:49Z</dc:date>
    <item>
      <title>Changing default field case sensitivity</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Changing-default-field-case-sensitivity/m-p/24740#M4588</link>
      <description>&lt;P&gt;All,&lt;/P&gt;

&lt;P&gt;I'm wondering if there is a way to change my configuration files to ignore the capitalization of a field.  For example, I would want &lt;SAMP&gt;myField&lt;/SAMP&gt; and &lt;SAMP&gt;MyField&lt;/SAMP&gt; to both show up if my search is something like:&lt;/P&gt;

&lt;PRE&gt;sourcetype="mysource" myField="SomeValue"&lt;/PRE&gt;

&lt;P&gt;I know there are workarounds for this (e.g. &lt;SAMP&gt;rename&lt;/SAMP&gt; and evaluating into a new field), but I was wondering if there is any easier way to handle this case.  Ideally, I could set this in a conf file.&lt;/P&gt;

&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Mon, 05 Aug 2013 14:19:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Changing-default-field-case-sensitivity/m-p/24740#M4588</guid>
      <dc:creator>bruceclarke</dc:creator>
      <dc:date>2013-08-05T14:19:49Z</dc:date>
    </item>
    <item>
      <title>Re: Changing default field case sensitivity</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Changing-default-field-case-sensitivity/m-p/24741#M4589</link>
      <description>&lt;P&gt;Hello,&lt;BR /&gt;
Similar questions had been answered before. This may help you:&lt;/P&gt;

&lt;P&gt;&lt;A href="http://splunk-base.splunk.com/answers/59361/dealing-with-keyvalue-pairs-with-inconsistent-key-case"&gt;http://splunk-base.splunk.com/answers/59361/dealing-with-keyvalue-pairs-with-inconsistent-key-case&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 05 Aug 2013 14:36:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Changing-default-field-case-sensitivity/m-p/24741#M4589</guid>
      <dc:creator>linu1988</dc:creator>
      <dc:date>2013-08-05T14:36:04Z</dc:date>
    </item>
    <item>
      <title>Re: Changing default field case sensitivity</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Changing-default-field-case-sensitivity/m-p/24742#M4590</link>
      <description>&lt;P&gt;Thanks for the post.  I'll give the SED feature a shot.&lt;/P&gt;</description>
      <pubDate>Mon, 05 Aug 2013 15:02:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Changing-default-field-case-sensitivity/m-p/24742#M4590</guid>
      <dc:creator>bruceclarke</dc:creator>
      <dc:date>2013-08-05T15:02:32Z</dc:date>
    </item>
    <item>
      <title>Re: Changing default field case sensitivity</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Changing-default-field-case-sensitivity/m-p/24743#M4591</link>
      <description>&lt;P&gt;There is no facility in Splunk to ignore case sensitivity in field names, since they are meant to be used as labels, like in programming where each label is unique.&lt;/P&gt;

&lt;P&gt;You can, however set field aliases in the props.conf file in your sourcetype stanza&lt;/P&gt;

&lt;P&gt;FIELDALIAS-&lt;CLASS&gt; = &lt;ORIG_FIELD_NAME&gt; AS &lt;NEW_FIELD_NAME&gt;&lt;/NEW_FIELD_NAME&gt;&lt;/ORIG_FIELD_NAME&gt;&lt;/CLASS&gt;&lt;/P&gt;

&lt;P&gt;so it would be something like this:&lt;BR /&gt;
[accesslog]&lt;BR /&gt;
EXTRACT-extract_ip = (?&lt;IP&gt;\d{1,3}.\d{1,3}.\d{1,3}.\d{1,3})&lt;BR /&gt;
FIELDALIAS-extract_ip = ip AS ipAddress&lt;/IP&gt;&lt;/P&gt;

&lt;P&gt;You might also want to take a look at this :&lt;BR /&gt;
&lt;A href="http://splunk-base.splunk.com/answers/9201/field-alias-for-all-indexed-data" target="_blank"&gt;http://splunk-base.splunk.com/answers/9201/field-alias-for-all-indexed-data&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;You haven't said what you're trying to address exactly, but perhaps a combination of the two approaches would spark something for you...&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 14:30:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Changing-default-field-case-sensitivity/m-p/24743#M4591</guid>
      <dc:creator>rsennett_splunk</dc:creator>
      <dc:date>2020-09-28T14:30:11Z</dc:date>
    </item>
  </channel>
</rss>

