<?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: How do I use the eval &amp;quot;lower&amp;quot; function to make a field lowercase? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-use-the-eval-quot-lower-quot-function-to-make-a-field/m-p/249326#M74441</link>
    <description>&lt;P&gt;What values do you have for &lt;CODE&gt;inFullName&lt;/CODE&gt;?. I just tried this and it works as expected&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| gentimes start=-1 | eval inFName="Mother" | eval inSName="THeresa" | eval inFullNameUL= lower(inFName)." ".upper(inSName) | eval inFullNameL=lower(inFullNameUL) | table inFName inSName inFullNameL inFullNameUL
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Tue, 24 Nov 2015 13:55:36 GMT</pubDate>
    <dc:creator>sundareshr</dc:creator>
    <dc:date>2015-11-24T13:55:36Z</dc:date>
    <item>
      <title>How do I use the eval "lower" function to make a field lowercase?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-use-the-eval-quot-lower-quot-function-to-make-a-field/m-p/249325#M74440</link>
      <description>&lt;P&gt;Hi, I wonder whether someone may be able to help me please.&lt;/P&gt;

&lt;P&gt;I'm trying to make changes to the partial script below to make the field "inFullName" lowercase.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=main auditSource="matching" auditType="Tx*"
 | rex "IncomingSearchRequest\(Some\((?&amp;lt;inNINO&amp;gt;[^\)]+)\),Some\((?&amp;lt;inFName&amp;gt;[^\)]+)\),Some\((?&amp;lt;inSName&amp;gt;[^\)]+)\),Some\((?&amp;lt;inDOB&amp;gt;[^\)]+)\)\)"
 | eval date=inDOB | eval inDOB=replace(inDOB,"(\d+)-(\d+)-(\d+)","\3/\2/\1") 
 | eval inFullName= inFName." ".inSName 
 | eval inFull_Details= "FullName: ".inFullName.", NINO: ".inNINO.", DOB: ".inDOB
 | makemv delim=", " inFull_Details
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I've tried using &lt;CODE&gt;| eval inFullName=lower(inFullName)&lt;/CODE&gt; at multiple points in the search, but the field fails to display any data, so somewhere along the lines I've gone wrong.&lt;/P&gt;

&lt;P&gt;Could someone have a look at this please and let me know where I've gone wrong?&lt;/P&gt;

&lt;P&gt;Many thanks and kind regards&lt;/P&gt;

&lt;P&gt;Chris &lt;/P&gt;</description>
      <pubDate>Tue, 24 Nov 2015 08:11:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-use-the-eval-quot-lower-quot-function-to-make-a-field/m-p/249325#M74440</guid>
      <dc:creator>IRHM73</dc:creator>
      <dc:date>2015-11-24T08:11:37Z</dc:date>
    </item>
    <item>
      <title>Re: How do I use the eval "lower" function to make a field lowercase?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-use-the-eval-quot-lower-quot-function-to-make-a-field/m-p/249326#M74441</link>
      <description>&lt;P&gt;What values do you have for &lt;CODE&gt;inFullName&lt;/CODE&gt;?. I just tried this and it works as expected&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| gentimes start=-1 | eval inFName="Mother" | eval inSName="THeresa" | eval inFullNameUL= lower(inFName)." ".upper(inSName) | eval inFullNameL=lower(inFullNameUL) | table inFName inSName inFullNameL inFullNameUL
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 24 Nov 2015 13:55:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-use-the-eval-quot-lower-quot-function-to-make-a-field/m-p/249326#M74441</guid>
      <dc:creator>sundareshr</dc:creator>
      <dc:date>2015-11-24T13:55:36Z</dc:date>
    </item>
    <item>
      <title>Re: How do I use the eval "lower" function to make a field lowercase?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-use-the-eval-quot-lower-quot-function-to-make-a-field/m-p/249327#M74442</link>
      <description>&lt;P&gt;It is hard (impossible) to say without sample event data.&lt;/P&gt;</description>
      <pubDate>Tue, 24 Nov 2015 20:00:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-use-the-eval-quot-lower-quot-function-to-make-a-field/m-p/249327#M74442</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2015-11-24T20:00:06Z</dc:date>
    </item>
    <item>
      <title>Re: How do I use the eval "lower" function to make a field lowercase?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-use-the-eval-quot-lower-quot-function-to-make-a-field/m-p/249328#M74443</link>
      <description>&lt;P&gt;Hi @sundareshr, thank you for taking the time to reply to my post.&lt;/P&gt;

&lt;P&gt;Could you perhaps explain to me what "gentimes start=-1" does, because when I used this I received an error message.&lt;/P&gt;

&lt;P&gt;Anyway with some tweaks to fit in with the data I need I used | eval inFullNameL= lower(inFName)." ".lower(inSName) and it worked perfectly.&lt;/P&gt;

&lt;P&gt;If you want to change this to an answer I can accept this.&lt;/P&gt;

&lt;P&gt;Many thanks and kind regards&lt;/P&gt;

&lt;P&gt;Chris&lt;/P&gt;</description>
      <pubDate>Wed, 25 Nov 2015 06:23:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-use-the-eval-quot-lower-quot-function-to-make-a-field/m-p/249328#M74443</guid>
      <dc:creator>IRHM73</dc:creator>
      <dc:date>2015-11-25T06:23:12Z</dc:date>
    </item>
    <item>
      <title>Re: How do I use the eval "lower" function to make a field lowercase?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-use-the-eval-quot-lower-quot-function-to-make-a-field/m-p/249329#M74444</link>
      <description>&lt;P&gt;Hi @woodcock, thank you for taking the time to come back to me with this. You'll see from my comment above that I was able to use the solution provided by @sundareshr.&lt;/P&gt;

&lt;P&gt;Many thanks and kind regards&lt;/P&gt;

&lt;P&gt;Chris&lt;/P&gt;</description>
      <pubDate>Wed, 25 Nov 2015 06:24:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-use-the-eval-quot-lower-quot-function-to-make-a-field/m-p/249329#M74444</guid>
      <dc:creator>IRHM73</dc:creator>
      <dc:date>2015-11-25T06:24:25Z</dc:date>
    </item>
    <item>
      <title>Re: How do I use the eval "lower" function to make a field lowercase?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-use-the-eval-quot-lower-quot-function-to-make-a-field/m-p/249330#M74445</link>
      <description>&lt;P&gt;@IRHM73,  Converted to answer. I used gentimes (&lt;A href="http://docs.splunk.com/Documentation/Splunk/6.2.0/SearchReference/Gentimes"&gt;http://docs.splunk.com/Documentation/Splunk/6.2.0/SearchReference/Gentimes&lt;/A&gt;) only to provide a run-anywhere example. It has not relevance to your search.&lt;/P&gt;</description>
      <pubDate>Wed, 25 Nov 2015 14:14:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-use-the-eval-quot-lower-quot-function-to-make-a-field/m-p/249330#M74445</guid>
      <dc:creator>sundareshr</dc:creator>
      <dc:date>2015-11-25T14:14:22Z</dc:date>
    </item>
  </channel>
</rss>

