<?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: Automated lookup using kvstore collection not working in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Why-is-Automated-lookup-using-kvstore-collection-not-working/m-p/600674#M209090</link>
    <description>&lt;P&gt;Hi! may be you know why&amp;nbsp;&lt;SPAN&gt;after adding replicate = true&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;to&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;KV lookup in&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;collections.conf&lt;/SPAN&gt;&lt;SPAN&gt;, my datamodel’s lookup isn’t working, even in datamodel editor (preview). it just can’t join, all output fields is empty (without replicate all works fine)?&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 06 Jun 2022 11:55:23 GMT</pubDate>
    <dc:creator>DmitriyGolovnya</dc:creator>
    <dc:date>2022-06-06T11:55:23Z</dc:date>
    <item>
      <title>Why is Automated lookup using kvstore collection not working?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-is-Automated-lookup-using-kvstore-collection-not-working/m-p/550646#M156260</link>
      <description>&lt;P&gt;I have created a collection in app/local/collections.conf&lt;/P&gt;
&lt;P&gt;a matching lookup in app/local/transforms.conf&lt;/P&gt;
&lt;P&gt;I have 5 key fields which together for the unique key, the combination of these is also stored in the _key field.&lt;/P&gt;
&lt;P&gt;The data is populated from an index which is filled from a dbconnect source, and automatically updated up into to collection. All this works just fine.&lt;/P&gt;
&lt;P&gt;when I use the lookup in SPL using the five fields as input, I nicely get referenced data back. when I create this lookup as part of a data model, it also provides the extra fields in the datamodel.&lt;/P&gt;
&lt;P&gt;However if I try to use this in an automated lookup, I cannot get it to work.&lt;/P&gt;
&lt;P&gt;I have verified the correct use of the sourcetype (and also tried defining against source)&lt;/P&gt;
&lt;P&gt;I have verified the rights and tried using all on app and global level&lt;/P&gt;
&lt;P&gt;I have duplicated the full config on a csv file and this works just fine&lt;/P&gt;
&lt;P&gt;but against the kvstore the automatic lookup just wont work.&lt;/P&gt;
&lt;P&gt;illustration of the files and configs&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;collections.conf  in app/local
[my_collection]
field.inputfield1 = string
field.inputfield2 = string
field.inputfield3 = string
field.inputfield4 = string
field.inputfield5 = string
field.outputfield1 = string
...&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;transforms.conf  in app/local
[my_collection_lookup]
external_type = kvstore
collection = my_collection
fields_list = _key, inputfield1, inputfield2,inputfield3,inputfield4,inputfield5, outputfield1 ...&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;props.conf in app/local
[sourcetype_stanza]
LOOKUP-enrich_kv = my_collection_lookup inputfield1 AS datafield1 inputfield2 AS datafield2 inputfield3 AS datafield3 inputfield4 AS datafield4 inputfield5 as datafield5 OUTPUTNEW _key as key outputfield1 ....&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;any experiences/thoughts/ideas ?&lt;/P&gt;</description>
      <pubDate>Mon, 06 Jun 2022 20:52:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-is-Automated-lookup-using-kvstore-collection-not-working/m-p/550646#M156260</guid>
      <dc:creator>wmuselle</dc:creator>
      <dc:date>2022-06-06T20:52:59Z</dc:date>
    </item>
    <item>
      <title>Re: Automated lookup using kvstore collection not working</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-is-Automated-lookup-using-kvstore-collection-not-working/m-p/552367#M156775</link>
      <description>&lt;P&gt;found it for reference :&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.splunk.com/Documentation/Splunk/8.1.3/Knowledge/Makeyourlookupautomatic&amp;nbsp;" target="_blank"&gt;https://docs.splunk.com/Documentation/Splunk/8.1.3/Knowledge/Makeyourlookupautomatic&amp;nbsp;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Enable replication for a KV store collection&lt;BR /&gt;In Splunk Enterprise, KV Store collections are not bundle-replicated to indexers by default, and lookups run locally on the search head rather than on remote peers. When you enable replication for a KV Store collection, you can run the lookups on your indexers which let you use automatic lookups with your KV Store collections.&lt;/P&gt;&lt;P&gt;To enable replication for a KV Store collection and allow lookups against that collection to be automatic:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Open&amp;nbsp;collections.conf.&lt;/LI&gt;&lt;LI&gt;Set&amp;nbsp;replicate&amp;nbsp;to&amp;nbsp;true&amp;nbsp;in the stanza for the collection.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;This parameter is set to&amp;nbsp;false&amp;nbsp;by default.&lt;BR /&gt;Restart Splunk Enterprise to apply your changes.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 20 May 2021 10:32:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-is-Automated-lookup-using-kvstore-collection-not-working/m-p/552367#M156775</guid>
      <dc:creator>wmuselle</dc:creator>
      <dc:date>2021-05-20T10:32:19Z</dc:date>
    </item>
    <item>
      <title>Re: Automated lookup using kvstore collection not working</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-is-Automated-lookup-using-kvstore-collection-not-working/m-p/600674#M209090</link>
      <description>&lt;P&gt;Hi! may be you know why&amp;nbsp;&lt;SPAN&gt;after adding replicate = true&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;to&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;KV lookup in&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;collections.conf&lt;/SPAN&gt;&lt;SPAN&gt;, my datamodel’s lookup isn’t working, even in datamodel editor (preview). it just can’t join, all output fields is empty (without replicate all works fine)?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 06 Jun 2022 11:55:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-is-Automated-lookup-using-kvstore-collection-not-working/m-p/600674#M209090</guid>
      <dc:creator>DmitriyGolovnya</dc:creator>
      <dc:date>2022-06-06T11:55:23Z</dc:date>
    </item>
  </channel>
</rss>

