<?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: Field names in lowercase, transforms.conf in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Field-names-in-lowercase-transforms-conf/m-p/100603#M21069</link>
    <description>&lt;P&gt;Fields names ARE case sensitive!!! Values aren't.&lt;/P&gt;</description>
    <pubDate>Fri, 04 Mar 2016 09:02:55 GMT</pubDate>
    <dc:creator>marcoscala</dc:creator>
    <dc:date>2016-03-04T09:02:55Z</dc:date>
    <item>
      <title>Field names in lowercase, transforms.conf</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Field-names-in-lowercase-transforms-conf/m-p/100594#M21060</link>
      <description>&lt;P&gt;Hi!&lt;/P&gt;

&lt;P&gt;I have some different sourcetypes defined by me where I'm extracting some of the fields with stanzas in transforms.conf at search time (I'm using REPORT in props.conf). Here is one example of a stanza I'm using:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;REGEX=(?im)[\r\n]+([^\r\n]*name)\: ([^\r\n]+)
FORMAT=$1::$2
MV_ADD=true
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This extracts the fields I want, but since I extract the field name like this, the field name may be in uppercase, lowercase or a combination. &lt;/P&gt;

&lt;P&gt;Creating new stanzas for each field is not an option since I have a lot of fields and most of my stanzas are of the form shown above, where I just define the ending of the field name, to be able to extract most of them.&lt;/P&gt;

&lt;P&gt;I wonder if there is any way to "force" the field names to lowercase?&lt;/P&gt;</description>
      <pubDate>Fri, 19 Jul 2013 07:35:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Field-names-in-lowercase-transforms-conf/m-p/100594#M21060</guid>
      <dc:creator>gelica</dc:creator>
      <dc:date>2013-07-19T07:35:27Z</dc:date>
    </item>
    <item>
      <title>Re: Field names in lowercase, transforms.conf</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Field-names-in-lowercase-transforms-conf/m-p/100595#M21061</link>
      <description>&lt;P&gt;I guess this is mostly for cosmetic purposes? Because field names are case insensitive.&lt;/P&gt;</description>
      <pubDate>Fri, 19 Jul 2013 07:58:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Field-names-in-lowercase-transforms-conf/m-p/100595#M21061</guid>
      <dc:creator>Ayn</dc:creator>
      <dc:date>2013-07-19T07:58:00Z</dc:date>
    </item>
    <item>
      <title>Re: Field names in lowercase, transforms.conf</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Field-names-in-lowercase-transforms-conf/m-p/100596#M21062</link>
      <description>&lt;P&gt;The field values are case insensitive, but the field names are not.&lt;/P&gt;

&lt;P&gt;If I have a field called Machine_name, and run a search for Machine_name=* I get the events I'm looking for, but if I search fort machine_name=* instead, I get no results..&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 14:23:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Field-names-in-lowercase-transforms-conf/m-p/100596#M21062</guid>
      <dc:creator>gelica</dc:creator>
      <dc:date>2020-09-28T14:23:35Z</dc:date>
    </item>
    <item>
      <title>Re: Field names in lowercase, transforms.conf</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Field-names-in-lowercase-transforms-conf/m-p/100597#M21063</link>
      <description>&lt;P&gt;My mistake - you're absoutely right, field names are case sensitive. I don't have a good solution right now though, sorry.&lt;/P&gt;</description>
      <pubDate>Fri, 19 Jul 2013 08:37:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Field-names-in-lowercase-transforms-conf/m-p/100597#M21063</guid>
      <dc:creator>Ayn</dc:creator>
      <dc:date>2013-07-19T08:37:56Z</dc:date>
    </item>
    <item>
      <title>Re: Field names in lowercase, transforms.conf</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Field-names-in-lowercase-transforms-conf/m-p/100598#M21064</link>
      <description>&lt;P&gt;If you look at the answer to a slightly different question (&lt;A href="http://splunk-base.splunk.com/answers/59361/dealing-with-keyvalue-pairs-with-inconsistent-key-case"&gt;Dealing with key/value pairs with inconsistent key case&lt;/A&gt;) the solution is, perhaps, to pre-process the log stream at input time to convert to lower case with &lt;EM&gt;sed&lt;/EM&gt; commands.&lt;/P&gt;</description>
      <pubDate>Sun, 21 Jul 2013 19:36:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Field-names-in-lowercase-transforms-conf/m-p/100598#M21064</guid>
      <dc:creator>grijhwani</dc:creator>
      <dc:date>2013-07-21T19:36:01Z</dc:date>
    </item>
    <item>
      <title>Re: Field names in lowercase, transforms.conf</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Field-names-in-lowercase-transforms-conf/m-p/100599#M21065</link>
      <description>&lt;P&gt;I tried that, but didn't get it to work, hence my confused comments on that answer. &lt;BR /&gt;
I don't really understand the regex (s/\([A-Za-z0-9]*)/\1\L\2\g) either, I haven't found any information about it(I'm used to regexes so it is only this one that confuses me &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; )&lt;/P&gt;

&lt;P&gt;However, I tried this approach again, by adding it to my default-clause in props.conf, restarting Splunk and index new files, but I can't get it to work.. :S&lt;/P&gt;</description>
      <pubDate>Mon, 22 Jul 2013 05:13:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Field-names-in-lowercase-transforms-conf/m-p/100599#M21065</guid>
      <dc:creator>gelica</dc:creator>
      <dc:date>2013-07-22T05:13:06Z</dc:date>
    </item>
    <item>
      <title>Re: Field names in lowercase, transforms.conf</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Field-names-in-lowercase-transforms-conf/m-p/100600#M21066</link>
      <description>&lt;P&gt;So - you got it to work in the end?&lt;/P&gt;</description>
      <pubDate>Wed, 24 Jul 2013 21:03:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Field-names-in-lowercase-transforms-conf/m-p/100600#M21066</guid>
      <dc:creator>grijhwani</dc:creator>
      <dc:date>2013-07-24T21:03:24Z</dc:date>
    </item>
    <item>
      <title>Re: Field names in lowercase, transforms.conf</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Field-names-in-lowercase-transforms-conf/m-p/100601#M21067</link>
      <description>&lt;P&gt;stats and where both care about case, to name a couple.  I suggest using Calculated fields at search time.&lt;/P&gt;</description>
      <pubDate>Wed, 19 Aug 2015 17:39:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Field-names-in-lowercase-transforms-conf/m-p/100601#M21067</guid>
      <dc:creator>landen99</dc:creator>
      <dc:date>2015-08-19T17:39:30Z</dc:date>
    </item>
    <item>
      <title>Re: Field names in lowercase, transforms.conf</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Field-names-in-lowercase-transforms-conf/m-p/100602#M21068</link>
      <description>&lt;P&gt;It is for SEDCMD in props.conf and it looks like the author got it wrong.  Part of the string is regex and the other parts are code: s/regex/text/g&lt;BR /&gt;
"s" means replace and "g" means global&lt;/P&gt;

&lt;P&gt;He should have written:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;SEDCMD-contacts = s/([A-Za-z]*)/\L\1/g
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Keep in mind that this only changes the raw text at index time and not the field names after extraction at search time, but if you are extracting the field name from the raw text then search time extractions will extract all lower case.&lt;/P&gt;</description>
      <pubDate>Wed, 19 Aug 2015 18:20:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Field-names-in-lowercase-transforms-conf/m-p/100602#M21068</guid>
      <dc:creator>landen99</dc:creator>
      <dc:date>2015-08-19T18:20:06Z</dc:date>
    </item>
    <item>
      <title>Re: Field names in lowercase, transforms.conf</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Field-names-in-lowercase-transforms-conf/m-p/100603#M21069</link>
      <description>&lt;P&gt;Fields names ARE case sensitive!!! Values aren't.&lt;/P&gt;</description>
      <pubDate>Fri, 04 Mar 2016 09:02:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Field-names-in-lowercase-transforms-conf/m-p/100603#M21069</guid>
      <dc:creator>marcoscala</dc:creator>
      <dc:date>2016-03-04T09:02:55Z</dc:date>
    </item>
    <item>
      <title>Re: Field names in lowercase, transforms.conf</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Field-names-in-lowercase-transforms-conf/m-p/100604#M21070</link>
      <description>&lt;P&gt;It does seem right to convert all characters to lower case in transforms.conf, in the spirit of -&lt;/P&gt;

&lt;P&gt;[syslog-header-stripper-ts]&lt;BR /&gt;
REGEX         = ^[A-Z][a-z]+\s+\d+\s\d+:\d+:\d+\s(.*)$&lt;BR /&gt;
FORMAT        = $1&lt;BR /&gt;
DEST_KEY      = _raw&lt;/P&gt;</description>
      <pubDate>Fri, 04 Mar 2016 18:11:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Field-names-in-lowercase-transforms-conf/m-p/100604#M21070</guid>
      <dc:creator>ddrillic</dc:creator>
      <dc:date>2016-03-04T18:11:17Z</dc:date>
    </item>
    <item>
      <title>Re: Field names in lowercase, transforms.conf</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Field-names-in-lowercase-transforms-conf/m-p/100605#M21071</link>
      <description>&lt;P&gt;Sorry, but if I'm right, this transforms just STRIPS out the syslog header. It doesn't convert it to lowercase.&lt;/P&gt;</description>
      <pubDate>Mon, 07 Mar 2016 08:26:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Field-names-in-lowercase-transforms-conf/m-p/100605#M21071</guid>
      <dc:creator>marcoscala</dc:creator>
      <dc:date>2016-03-07T08:26:16Z</dc:date>
    </item>
  </channel>
</rss>

