<?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: What should be added to my search to convert all the results to be lower case? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/What-should-be-added-to-my-search-to-convert-all-the-results-to/m-p/319268#M95439</link>
    <description>&lt;P&gt;Hi dflodstrom ,&lt;/P&gt;

&lt;P&gt;Yes &lt;CODE&gt;lower(&amp;lt;&amp;lt;FIELD&amp;gt;&amp;gt;)&lt;/CODE&gt; works but I don't think so &lt;CODE&gt;| eval _raw=lower(_raw)&lt;/CODE&gt; will work on those fields which are extracting search time.  All search time extraction will be done when search before the first Pipe (|) will execute.  Even we change _raw after the first Pipe(|) the extracted fields will be the same.&lt;/P&gt;

&lt;P&gt;For an example. Please check output of below search:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=_internal   component=HTTPAuthManager | eval _raw=lower(_raw)  | stats  count by component, log_level,message
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Thanks&lt;/P&gt;</description>
    <pubDate>Sat, 21 Oct 2017 14:59:16 GMT</pubDate>
    <dc:creator>kamlesh_vaghela</dc:creator>
    <dc:date>2017-10-21T14:59:16Z</dc:date>
    <item>
      <title>What should be added to my search to convert all the results to be lower case?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/What-should-be-added-to-my-search-to-convert-all-the-results-to/m-p/319262#M95433</link>
      <description>&lt;P&gt;I have a Splunk query as follows &lt;/P&gt;

&lt;P&gt;| inputlookup hosts.csv | rename Hostname as my_hostname  |rex mode=sed field=my_hostname "s/..*//g&lt;/P&gt;

&lt;P&gt;Now what should be added to my query to convert all the results to be lower case.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 16:21:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/What-should-be-added-to-my-search-to-convert-all-the-results-to/m-p/319262#M95433</guid>
      <dc:creator>pavanae</dc:creator>
      <dc:date>2020-09-29T16:21:15Z</dc:date>
    </item>
    <item>
      <title>Re: What should be added to my search to convert all the results to be lower case?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/What-should-be-added-to-my-search-to-convert-all-the-results-to/m-p/319263#M95434</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;|eval my_hostname=lower(my_hostname)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/7.0.0/SearchReference/TextFunctions"&gt;http://docs.splunk.com/Documentation/Splunk/7.0.0/SearchReference/TextFunctions&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 19 Oct 2017 21:02:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/What-should-be-added-to-my-search-to-convert-all-the-results-to/m-p/319263#M95434</guid>
      <dc:creator>cmerriman</dc:creator>
      <dc:date>2017-10-19T21:02:12Z</dc:date>
    </item>
    <item>
      <title>Re: What should be added to my search to convert all the results to be lower case?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/What-should-be-added-to-my-search-to-convert-all-the-results-to/m-p/319264#M95435</link>
      <description>&lt;P&gt;Hi pavanae,&lt;BR /&gt;
if I correctly understood:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| inputlookup hosts.csv 
| eval my_hostname=upper(Hostname) 
| rex mode=sed field=my_hostname "s/..*//g"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Bye.&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
      <pubDate>Fri, 20 Oct 2017 12:13:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/What-should-be-added-to-my-search-to-convert-all-the-results-to/m-p/319264#M95435</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2017-10-20T12:13:56Z</dc:date>
    </item>
    <item>
      <title>Re: What should be added to my search to convert all the results to be lower case?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/What-should-be-added-to-my-search-to-convert-all-the-results-to/m-p/319265#M95436</link>
      <description>&lt;P&gt;Hi pavanae,&lt;/P&gt;

&lt;P&gt;can you please try it?&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| foreach "*" [eval &amp;lt;&amp;lt;FIELD&amp;gt;&amp;gt;=lower('&amp;lt;&amp;lt;FIELD&amp;gt;&amp;gt;') ]
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Fri, 20 Oct 2017 17:16:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/What-should-be-added-to-my-search-to-convert-all-the-results-to/m-p/319265#M95436</guid>
      <dc:creator>kamlesh_vaghela</dc:creator>
      <dc:date>2017-10-20T17:16:20Z</dc:date>
    </item>
    <item>
      <title>Re: What should be added to my search to convert all the results to be lower case?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/What-should-be-added-to-my-search-to-convert-all-the-results-to/m-p/319266#M95437</link>
      <description>&lt;P&gt;This definitely works even if you just use &lt;CODE&gt;lower(&amp;lt;&amp;lt;FIELD&amp;gt;&amp;gt;)&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;You could be silly and make everything lowercase too: &lt;CODE&gt;| eval _raw=lower(_raw)&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 20 Oct 2017 21:45:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/What-should-be-added-to-my-search-to-convert-all-the-results-to/m-p/319266#M95437</guid>
      <dc:creator>dflodstrom</dc:creator>
      <dc:date>2017-10-20T21:45:20Z</dc:date>
    </item>
    <item>
      <title>Re: What should be added to my search to convert all the results to be lower case?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/What-should-be-added-to-my-search-to-convert-all-the-results-to/m-p/319267#M95438</link>
      <description>&lt;P&gt;This is the easiest way to solve your specific issue.&lt;/P&gt;</description>
      <pubDate>Fri, 20 Oct 2017 21:47:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/What-should-be-added-to-my-search-to-convert-all-the-results-to/m-p/319267#M95438</guid>
      <dc:creator>dflodstrom</dc:creator>
      <dc:date>2017-10-20T21:47:25Z</dc:date>
    </item>
    <item>
      <title>Re: What should be added to my search to convert all the results to be lower case?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/What-should-be-added-to-my-search-to-convert-all-the-results-to/m-p/319268#M95439</link>
      <description>&lt;P&gt;Hi dflodstrom ,&lt;/P&gt;

&lt;P&gt;Yes &lt;CODE&gt;lower(&amp;lt;&amp;lt;FIELD&amp;gt;&amp;gt;)&lt;/CODE&gt; works but I don't think so &lt;CODE&gt;| eval _raw=lower(_raw)&lt;/CODE&gt; will work on those fields which are extracting search time.  All search time extraction will be done when search before the first Pipe (|) will execute.  Even we change _raw after the first Pipe(|) the extracted fields will be the same.&lt;/P&gt;

&lt;P&gt;For an example. Please check output of below search:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=_internal   component=HTTPAuthManager | eval _raw=lower(_raw)  | stats  count by component, log_level,message
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Sat, 21 Oct 2017 14:59:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/What-should-be-added-to-my-search-to-convert-all-the-results-to/m-p/319268#M95439</guid>
      <dc:creator>kamlesh_vaghela</dc:creator>
      <dc:date>2017-10-21T14:59:16Z</dc:date>
    </item>
  </channel>
</rss>

