<?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 to make case InSensitive search everywhere by default? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-make-case-InSensitive-search-everywhere-by-default/m-p/128203#M34796</link>
    <description>&lt;P&gt;Dunno. &lt;CODE&gt;lower()&lt;/CODE&gt; should be pretty quick, and &lt;CODE&gt;match()&lt;/CODE&gt; with a fast regular expression such as this one anchored to both ends without any multiplicity or options should be pretty quick as well.&lt;/P&gt;

&lt;P&gt;Here's another option, didn't test its speed:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;count(eval(searchmatch("log_level=info")))
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Wed, 02 Jul 2014 12:56:45 GMT</pubDate>
    <dc:creator>martin_mueller</dc:creator>
    <dc:date>2014-07-02T12:56:45Z</dc:date>
    <item>
      <title>How to make case InSensitive search everywhere by default?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-make-case-InSensitive-search-everywhere-by-default/m-p/128198#M34791</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;

&lt;P&gt;I need to make by default all searches in Splunk 6.1.1 as case InSensitive.&lt;BR /&gt;
For example, this search are case &lt;STRONG&gt;In&lt;/STRONG&gt;Sensitive:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=_internal log_level=info
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;But this search are case &lt;STRONG&gt;Sensitive&lt;/STRONG&gt;:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=_internal | where log_level=info
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Hm, strange... Why? Maybe it's bug and I need to report about it? How can I set default case &lt;STRONG&gt;In&lt;/STRONG&gt;Sensitive search everywhere? I know about function &lt;CODE&gt;lower()&lt;/CODE&gt;, but it's just particular solution.&lt;/P&gt;

&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Wed, 02 Jul 2014 11:52:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-make-case-InSensitive-search-everywhere-by-default/m-p/128198#M34791</guid>
      <dc:creator>Nikita_Danilov</dc:creator>
      <dc:date>2014-07-02T11:52:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to make case InSensitive search everywhere by default?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-make-case-InSensitive-search-everywhere-by-default/m-p/128199#M34792</link>
      <description>&lt;P&gt;That's not a bug, Splunk is case sensitive &lt;EM&gt;except&lt;/EM&gt; in the search command. (Maybe there's a few more exceptions...)&lt;/P&gt;

&lt;P&gt;In your example, you could do this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=_internal | ... | search log_level=info
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;That'll find &lt;CODE&gt;info&lt;/CODE&gt;, &lt;CODE&gt;Info&lt;/CODE&gt;, &lt;CODE&gt;INFO&lt;/CODE&gt;, ...&lt;/P&gt;</description>
      <pubDate>Wed, 02 Jul 2014 12:20:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-make-case-InSensitive-search-everywhere-by-default/m-p/128199#M34792</guid>
      <dc:creator>martin_mueller</dc:creator>
      <dc:date>2014-07-02T12:20:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to make case InSensitive search everywhere by default?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-make-case-InSensitive-search-everywhere-by-default/m-p/128200#M34793</link>
      <description>&lt;P&gt;Martin, thanks, but what about &lt;CODE&gt;count(eval(log_level=info))&lt;/CODE&gt;? I need to use everywhere &lt;CODE&gt;lower()&lt;/CODE&gt;? Where I can find information about this "exceptions"? This case surprised me, because in other Answers people say that "Splunk is case InSensitive".&lt;/P&gt;</description>
      <pubDate>Wed, 02 Jul 2014 12:34:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-make-case-InSensitive-search-everywhere-by-default/m-p/128200#M34793</guid>
      <dc:creator>Nikita_Danilov</dc:creator>
      <dc:date>2014-07-02T12:34:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to make case InSensitive search everywhere by default?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-make-case-InSensitive-search-everywhere-by-default/m-p/128201#M34794</link>
      <description>&lt;P&gt;You could do this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;count(eval(match(log_level, "(?i)^info$")))
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Or this for much more readability in case you have multiple long statements:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | eval info_level = if(match(log_level, "(?i)^info$"), 1, 0) | stats sum(info_level)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The other answers you found may be referring to the &lt;CODE&gt;search&lt;/CODE&gt; command, that indeed does treat values as case insensitive.&lt;/P&gt;</description>
      <pubDate>Wed, 02 Jul 2014 12:49:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-make-case-InSensitive-search-everywhere-by-default/m-p/128201#M34794</guid>
      <dc:creator>martin_mueller</dc:creator>
      <dc:date>2014-07-02T12:49:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to make case InSensitive search everywhere by default?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-make-case-InSensitive-search-everywhere-by-default/m-p/128202#M34795</link>
      <description>&lt;P&gt;Does &lt;CODE&gt;match(,)&lt;/CODE&gt; have better performance than &lt;CODE&gt;lower()&lt;/CODE&gt;?&lt;/P&gt;</description>
      <pubDate>Wed, 02 Jul 2014 12:53:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-make-case-InSensitive-search-everywhere-by-default/m-p/128202#M34795</guid>
      <dc:creator>Nikita_Danilov</dc:creator>
      <dc:date>2014-07-02T12:53:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to make case InSensitive search everywhere by default?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-make-case-InSensitive-search-everywhere-by-default/m-p/128203#M34796</link>
      <description>&lt;P&gt;Dunno. &lt;CODE&gt;lower()&lt;/CODE&gt; should be pretty quick, and &lt;CODE&gt;match()&lt;/CODE&gt; with a fast regular expression such as this one anchored to both ends without any multiplicity or options should be pretty quick as well.&lt;/P&gt;

&lt;P&gt;Here's another option, didn't test its speed:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;count(eval(searchmatch("log_level=info")))
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 02 Jul 2014 12:56:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-make-case-InSensitive-search-everywhere-by-default/m-p/128203#M34796</guid>
      <dc:creator>martin_mueller</dc:creator>
      <dc:date>2014-07-02T12:56:45Z</dc:date>
    </item>
  </channel>
</rss>

