<?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: Why are the kvstore lookups uncharacteristically case-sensitive in field values? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Why-are-the-kvstore-lookups-uncharacteristically-case-sensitive/m-p/539225#M152525</link>
    <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/1406"&gt;@woodcock&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Unfortunately case sensitivity is not one of the advanced options in the UI for KV store lookup definitions.&amp;nbsp;&lt;/P&gt;&lt;P&gt;We had a similar issue with KV store and ended up using&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/120445"&gt;@cpetterborg&lt;/a&gt;&amp;nbsp;solution of ensuring the key data in the store was lower cased at storage and during lookup time.&lt;/P&gt;&lt;P&gt;As the inputlookup 'WHERE' clause is not a full eval statement where, it ended up being easier all round to normalise the data to lower case at all points, but does require changing all lookup statements to lower() the data before lookup, which would probably not solve the OP's question as I expect they have existing logic that would need to change.&lt;/P&gt;&lt;P&gt;Not sure what&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/117668"&gt;@dstaulcu&lt;/a&gt;&amp;nbsp;did to solve his problem, but I had originally meant to add a Splunk idea around this when we had the problem ourselves, so I added it now &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://ideas.splunk.com/ideas/EID-I-818" target="_blank"&gt;https://ideas.splunk.com/ideas/EID-I-818&lt;/A&gt;&lt;/P&gt;&lt;P&gt;vote for it if you think it needs a solution...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 09 Feb 2021 22:03:54 GMT</pubDate>
    <dc:creator>bowesmana</dc:creator>
    <dc:date>2021-02-09T22:03:54Z</dc:date>
    <item>
      <title>Why are the kvstore lookups uncharacteristically case-sensitive in field values?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-are-the-kvstore-lookups-uncharacteristically-case-sensitive/m-p/376779#M110594</link>
      <description>&lt;P&gt;Has anyone figured a way to make kv-store lookups NOT case sensitive on field values? If so, how?&lt;/P&gt;

&lt;P&gt;We're about to migrate users to a new search head cluster where all large (&amp;gt; 20 MB) public lookups have been converted from CSV to KV. We plan to communicate the KV store change and it's potential impacts to search results, but it seems strange that Splunk has allowed this KV store's deviation in behavior to persist for so long. Splunk guru's --  What are the challenges to normalizing this behavior by default?&lt;/P&gt;</description>
      <pubDate>Tue, 08 May 2018 10:59:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-are-the-kvstore-lookups-uncharacteristically-case-sensitive/m-p/376779#M110594</guid>
      <dc:creator>dstaulcu</dc:creator>
      <dc:date>2018-05-08T10:59:02Z</dc:date>
    </item>
    <item>
      <title>Re: Why are the kvstore lookups uncharacteristically case-sensitive in field values?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-are-the-kvstore-lookups-uncharacteristically-case-sensitive/m-p/376780#M110595</link>
      <description>&lt;P&gt;Define a lookup for you KV store  and set it to case insensitive:&lt;/P&gt;

&lt;P&gt;[]&lt;BR /&gt;
&lt;STRONG&gt;case_sensitive_match = false&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;case_sensitive_match &lt;STRONG&gt;defaults to true&lt;/STRONG&gt;.&lt;BR /&gt;
If set to false, case insensitive matching will be performed for all fields in a lookup table. Output fields and values in the KV Store used for matching must be lower case. &lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 19:33:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-are-the-kvstore-lookups-uncharacteristically-case-sensitive/m-p/376780#M110595</guid>
      <dc:creator>solarboyz1</dc:creator>
      <dc:date>2020-09-29T19:33:36Z</dc:date>
    </item>
    <item>
      <title>Re: Why are the kvstore lookups uncharacteristically case-sensitive in field values?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-are-the-kvstore-lookups-uncharacteristically-case-sensitive/m-p/376781#M110596</link>
      <description>&lt;P&gt;To clarify,   in transforms.conf create a lookup defnition for your kvstore &lt;/P&gt;

&lt;P&gt;[ Lookup_name ]&lt;BR /&gt;
external_type = kvstore&lt;BR /&gt;
&lt;STRONG&gt;collection = kvstore_name&lt;/STRONG&gt;&lt;BR /&gt;
case_sensitive_match = &lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 19:33:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-are-the-kvstore-lookups-uncharacteristically-case-sensitive/m-p/376781#M110596</guid>
      <dc:creator>solarboyz1</dc:creator>
      <dc:date>2020-09-29T19:33:38Z</dc:date>
    </item>
    <item>
      <title>Re: Why are the kvstore lookups uncharacteristically case-sensitive in field values?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-are-the-kvstore-lookups-uncharacteristically-case-sensitive/m-p/376782#M110597</link>
      <description>&lt;P&gt;Though not the optimal solution, you could make sure the data in the kv_store is lower case, then match by using the&lt;CODE&gt;lower()&lt;/CODE&gt; function on the data you want to find in the kv_store. Like I say, not optimal, but it should work.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 19:34:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-are-the-kvstore-lookups-uncharacteristically-case-sensitive/m-p/376782#M110597</guid>
      <dc:creator>cpetterborg</dc:creator>
      <dc:date>2020-09-29T19:34:25Z</dc:date>
    </item>
    <item>
      <title>Re: Why are the kvstore lookups uncharacteristically case-sensitive in field values?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-are-the-kvstore-lookups-uncharacteristically-case-sensitive/m-p/376783#M110598</link>
      <description>&lt;P&gt;You can create a &lt;CODE&gt;Lookup definition&lt;/CODE&gt; ( &lt;CODE&gt;Settings&lt;/CODE&gt; -&amp;gt; &lt;CODE&gt;Lookups&lt;/CODE&gt; -&amp;gt; &lt;CODE&gt;Lookup definition&lt;/CODE&gt; -&amp;gt; &lt;CODE&gt;New&lt;/CODE&gt; ) that points to your &lt;CODE&gt;KVStore-based&lt;/CODE&gt; lookup and then uncheck the &lt;CODE&gt;Case sensitive&lt;/CODE&gt; setting.  Then use the &lt;CODE&gt;Lookup definition&lt;/CODE&gt; instead.&lt;/P&gt;</description>
      <pubDate>Thu, 17 May 2018 19:34:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-are-the-kvstore-lookups-uncharacteristically-case-sensitive/m-p/376783#M110598</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2018-05-17T19:34:56Z</dc:date>
    </item>
    <item>
      <title>Re: Why are the kvstore lookups uncharacteristically case-sensitive in field values?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-are-the-kvstore-lookups-uncharacteristically-case-sensitive/m-p/539013#M152441</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/1406"&gt;@woodcock&lt;/a&gt;There is no &lt;EM&gt;Case sensitive&lt;/EM&gt; setting in Splunk Web.&lt;/P&gt;&lt;P&gt;Splunk's &lt;A href="https://docs.splunk.com/Documentation/Splunk/latest/Knowledge/ConfigureKVstorelookups#The_KV_Store_lookup_stanza_format" target="_blank" rel="noopener"&gt;documentation&lt;/A&gt; says, that it can be done via &lt;EM&gt;transforms.conf &lt;/EM&gt;if field name and value are lower case. I have the following configured:&lt;/P&gt;&lt;P&gt;collections.conf&lt;/P&gt;&lt;P&gt;&lt;EM&gt;[collection_test]&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;field.test = string&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;replicate = true&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;transforms.conf&lt;/P&gt;&lt;P&gt;&lt;EM&gt;[lookup_test]&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;external_type = kvstore&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;collection = collection_test&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;case_sensitive_match = false&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;fields_list = test&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;I filled it with some lowercase data:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;| makeresults &lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;| eval test = "test_value"&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;| fields - _time&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;| outputlookup lookup_test&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;The search &lt;EM&gt;| inputlookup lookup_test WHERE test="TEST_VALUE"&lt;/EM&gt; should be successful but isn't.&lt;/P&gt;</description>
      <pubDate>Mon, 08 Feb 2021 15:55:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-are-the-kvstore-lookups-uncharacteristically-case-sensitive/m-p/539013#M152441</guid>
      <dc:creator>dominikatvastli</dc:creator>
      <dc:date>2021-02-08T15:55:42Z</dc:date>
    </item>
    <item>
      <title>Re: Why are the kvstore lookups uncharacteristically case-sensitive in field values?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-are-the-kvstore-lookups-uncharacteristically-case-sensitive/m-p/539026#M152448</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;"case_sensitive_match = false" in the transform.conf effects only lookup command. You can use &lt;STRONG&gt;upper() &lt;/STRONG&gt;or &lt;STRONG&gt;lower()&lt;/STRONG&gt; function for comparison in where command like below;&lt;/SPAN&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt; inputlookup lookup_test WHERE upper(test)="TEST_VALUE" &lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 08 Feb 2021 18:03:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-are-the-kvstore-lookups-uncharacteristically-case-sensitive/m-p/539026#M152448</guid>
      <dc:creator>scelikok</dc:creator>
      <dc:date>2021-02-08T18:03:02Z</dc:date>
    </item>
    <item>
      <title>Re: Why are the kvstore lookups uncharacteristically case-sensitive in field values?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-are-the-kvstore-lookups-uncharacteristically-case-sensitive/m-p/539038#M152453</link>
      <description>&lt;P&gt;Thanks for the answer. Unfortunately, it throws the following error:&lt;EM&gt; Comparator '=' has an invalid term on the left hand side: CASE(test)&amp;nbsp;&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 08 Feb 2021 18:39:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-are-the-kvstore-lookups-uncharacteristically-case-sensitive/m-p/539038#M152453</guid>
      <dc:creator>dominikatvastli</dc:creator>
      <dc:date>2021-02-08T18:39:02Z</dc:date>
    </item>
    <item>
      <title>Re: Why are the kvstore lookups uncharacteristically case-sensitive in field values?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-are-the-kvstore-lookups-uncharacteristically-case-sensitive/m-p/539051#M152457</link>
      <description>&lt;P&gt;I never said there was a case-sensitive setting "for Splunk Web" (I don't even know what that might mean).&amp;nbsp; I was EXTREMELY clear about where the setting is and it does work exactly as I explained.&amp;nbsp; Lookups should be done through Lookup Definitions, not through files or collections, unless there is a very good reason not to (I cannot think of one).&lt;/P&gt;</description>
      <pubDate>Mon, 08 Feb 2021 21:03:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-are-the-kvstore-lookups-uncharacteristically-case-sensitive/m-p/539051#M152457</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2021-02-08T21:03:23Z</dc:date>
    </item>
    <item>
      <title>Re: Why are the kvstore lookups uncharacteristically case-sensitive in field values?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-are-the-kvstore-lookups-uncharacteristically-case-sensitive/m-p/539058#M152462</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/150252"&gt;@dominikatvastli&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;You are right, I was testing with the lookup command.&lt;/P&gt;</description>
      <pubDate>Mon, 08 Feb 2021 21:50:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-are-the-kvstore-lookups-uncharacteristically-case-sensitive/m-p/539058#M152462</guid>
      <dc:creator>scelikok</dc:creator>
      <dc:date>2021-02-08T21:50:55Z</dc:date>
    </item>
    <item>
      <title>Re: Why are the kvstore lookups uncharacteristically case-sensitive in field values?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-are-the-kvstore-lookups-uncharacteristically-case-sensitive/m-p/539096#M152479</link>
      <description>&lt;P&gt;Sorry if that was misleading.&lt;/P&gt;&lt;P&gt;With Splunk Web I meant that I followed your instructions by going to &lt;EM&gt;Settings -&amp;gt; Lookups -&amp;gt; Lookup definition -&amp;gt; New&lt;/EM&gt; . When setting the type to &lt;EM&gt;KV Store&lt;/EM&gt;, the setting &lt;EM&gt;Case sensitive match&lt;/EM&gt; is not available. When choosing &lt;EM&gt;file-based&lt;/EM&gt; or &lt;EM&gt;external&lt;/EM&gt; as type, it is available.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 09 Feb 2021 07:05:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-are-the-kvstore-lookups-uncharacteristically-case-sensitive/m-p/539096#M152479</guid>
      <dc:creator>dominikatvastli</dc:creator>
      <dc:date>2021-02-09T07:05:31Z</dc:date>
    </item>
    <item>
      <title>Re: Why are the kvstore lookups uncharacteristically case-sensitive in field values?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-are-the-kvstore-lookups-uncharacteristically-case-sensitive/m-p/539225#M152525</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/1406"&gt;@woodcock&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Unfortunately case sensitivity is not one of the advanced options in the UI for KV store lookup definitions.&amp;nbsp;&lt;/P&gt;&lt;P&gt;We had a similar issue with KV store and ended up using&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/120445"&gt;@cpetterborg&lt;/a&gt;&amp;nbsp;solution of ensuring the key data in the store was lower cased at storage and during lookup time.&lt;/P&gt;&lt;P&gt;As the inputlookup 'WHERE' clause is not a full eval statement where, it ended up being easier all round to normalise the data to lower case at all points, but does require changing all lookup statements to lower() the data before lookup, which would probably not solve the OP's question as I expect they have existing logic that would need to change.&lt;/P&gt;&lt;P&gt;Not sure what&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/117668"&gt;@dstaulcu&lt;/a&gt;&amp;nbsp;did to solve his problem, but I had originally meant to add a Splunk idea around this when we had the problem ourselves, so I added it now &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://ideas.splunk.com/ideas/EID-I-818" target="_blank"&gt;https://ideas.splunk.com/ideas/EID-I-818&lt;/A&gt;&lt;/P&gt;&lt;P&gt;vote for it if you think it needs a solution...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 09 Feb 2021 22:03:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-are-the-kvstore-lookups-uncharacteristically-case-sensitive/m-p/539225#M152525</guid>
      <dc:creator>bowesmana</dc:creator>
      <dc:date>2021-02-09T22:03:54Z</dc:date>
    </item>
    <item>
      <title>Re: Why are the kvstore lookups uncharacteristically case-sensitive in field values?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-are-the-kvstore-lookups-uncharacteristically-case-sensitive/m-p/539226#M152526</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/84762"&gt;@solarboyz1&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;From&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.splunk.com/Documentation/Splunk/latest/admin/Transformsconf" target="_blank"&gt;https://docs.splunk.com/Documentation/Splunk/latest/admin/Transformsconf&lt;/A&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;case_sensitive_match = &amp;lt;boolean&amp;gt;
* NOTE: This attribute is not valid for KV Store-based lookups.&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 09 Feb 2021 22:06:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-are-the-kvstore-lookups-uncharacteristically-case-sensitive/m-p/539226#M152526</guid>
      <dc:creator>bowesmana</dc:creator>
      <dc:date>2021-02-09T22:06:41Z</dc:date>
    </item>
    <item>
      <title>Re: Why are the kvstore lookups uncharacteristically case-sensitive in field values?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-are-the-kvstore-lookups-uncharacteristically-case-sensitive/m-p/558836#M158773</link>
      <description>The most hillarious answer I have seen recently &lt;span class="lia-unicode-emoji" title=":grinning_face_with_smiling_eyes:"&gt;😄&lt;/span&gt;</description>
      <pubDate>Fri, 09 Jul 2021 13:07:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-are-the-kvstore-lookups-uncharacteristically-case-sensitive/m-p/558836#M158773</guid>
      <dc:creator>tomasmoser</dc:creator>
      <dc:date>2021-07-09T13:07:50Z</dc:date>
    </item>
    <item>
      <title>Re: Why are the kvstore lookups uncharacteristically case-sensitive in field values?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-are-the-kvstore-lookups-uncharacteristically-case-sensitive/m-p/601042#M209202</link>
      <description>&lt;P&gt;You are correct, it is missing when you switch to kvstore. You can add it in the transforms.conf manually and it works - but any further saving to the lookup definition through the Web UI will overwrite/remove the change.&amp;nbsp; A little frustrating.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;[lookup_definition_name]&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;...&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;case_sensitive_match&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;0&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 08 Jun 2022 15:13:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-are-the-kvstore-lookups-uncharacteristically-case-sensitive/m-p/601042#M209202</guid>
      <dc:creator>_joe</dc:creator>
      <dc:date>2022-06-08T15:13:28Z</dc:date>
    </item>
  </channel>
</rss>

