<?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 provide permissions for kvstore lookups? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-provide-permissions-for-kvstore-lookups/m-p/171676#M49209</link>
    <description>&lt;P&gt;I am a Splunk Cloud customer who can not make configuration changes directly.&lt;BR /&gt;
I was able to work around this by adding the backend collection via REST:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;curl -k -u &amp;lt;username&amp;gt;:&amp;lt;password&amp;gt; -d name=&amp;lt;collections_name&amp;gt; &lt;A href="https://&amp;lt;youraccountname&amp;gt;.splunkcloud.com:8089/servicesNS/nobody/&amp;lt;app-name&amp;gt;/storage/collections/config" target="test_blank"&gt;https://&amp;lt;youraccountname&amp;gt;.splunkcloud.com:8089/servicesNS/nobody/&amp;lt;app-name&amp;gt;/storage/collections/config&lt;/A&gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Wed, 28 Nov 2018 17:31:12 GMT</pubDate>
    <dc:creator>markbarber21</dc:creator>
    <dc:date>2018-11-28T17:31:12Z</dc:date>
    <item>
      <title>How to provide permissions for kvstore lookups?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-provide-permissions-for-kvstore-lookups/m-p/171668#M49201</link>
      <description>&lt;P&gt;I am setting up permissions for kv store collections.&lt;BR /&gt;
I tried to give permission in local.meta in my app for all the collections, but still getting &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;" Error in 'outputlookup' command: the lookup table ' permission denied for collection 'win-l1'" is invalid
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Please let me know how to provide permissions for kvstore lookups.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;local.meta
[lookups]
access = read : [ * ], write : [ admin, win-l1,win-l2 ]
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 22 Jun 2015 20:42:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-provide-permissions-for-kvstore-lookups/m-p/171668#M49201</guid>
      <dc:creator>spyme72</dc:creator>
      <dc:date>2015-06-22T20:42:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to provide permissions for kvstore lookups?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-provide-permissions-for-kvstore-lookups/m-p/171669#M49202</link>
      <description>&lt;P&gt;I got the same problem. It didn't help to resolve the problem by adding the above local.meta.&lt;BR /&gt;
From search.log I see the following error, surprised why admin cannot write to kvstore&lt;/P&gt;

&lt;P&gt;07-03-2015 02:00:12.618 ERROR KVStoreLookup - Lookup failed as user 'admin' does not have access to collection 'ldap_people_kv' in app 'telco_lookups' (write: 1)&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 20:28:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-provide-permissions-for-kvstore-lookups/m-p/171669#M49202</guid>
      <dc:creator>philip_wong</dc:creator>
      <dc:date>2020-09-28T20:28:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to provide permissions for kvstore lookups?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-provide-permissions-for-kvstore-lookups/m-p/171670#M49203</link>
      <description>&lt;P&gt;As much as I prefer the CLI, the GUI is frequently better (harder to mess up) for setting permissions.  Go to &lt;CODE&gt;settings&lt;/CODE&gt; -&amp;gt; &lt;CODE&gt;lookups&lt;/CODE&gt; and make sure that ALL 3 of your &lt;CODE&gt;KOs&lt;/CODE&gt; (Lookup table files, Lookup definitions, and Automatic lookups) have appropriate permissions.  Try "Global" first and then back down from that.&lt;/P&gt;</description>
      <pubDate>Fri, 03 Jul 2015 16:26:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-provide-permissions-for-kvstore-lookups/m-p/171670#M49203</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2015-07-03T16:26:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to provide permissions for kvstore lookups?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-provide-permissions-for-kvstore-lookups/m-p/171671#M49204</link>
      <description>&lt;P&gt;So it seems that using the web interface to create a KV Store creates the definition of the lookup, but does not actually create the backing collection. This causes the "lookup table "permission denied for collection 'name'" is invalid" error as opposed to just "lookup table 'name' is invalid" error that would indicate that the lookup definition doesn't exist. (I would log a support request asking for this messaging to be improved, as it's somewhat confusing.)&lt;/P&gt;

&lt;P&gt;To resolve this, you also need to create (manually) a collections.conf stanza as described in the &lt;A href="http://dev.splunk.com/view/SP-CAAAEZJ"&gt;developer documentation&lt;/A&gt; to match to the target collection of your KV Store. From that doc "At a minimum, all you need to create a KV Store collection is the stanza name". I am not a KV Store expert, but you likely have to grant write access to the backing collection as well (given the error message that @philip.wong described above) in the corresponding .meta. and then restart splunk.&lt;/P&gt;</description>
      <pubDate>Fri, 03 Jul 2015 21:04:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-provide-permissions-for-kvstore-lookups/m-p/171671#M49204</guid>
      <dc:creator>acharlieh</dc:creator>
      <dc:date>2015-07-03T21:04:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to provide permissions for kvstore lookups?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-provide-permissions-for-kvstore-lookups/m-p/171672#M49205</link>
      <description>&lt;P&gt;Yes, eventually I found collections.conf was missed as you said. It's fixed.&lt;BR /&gt;
Thanks a lot!&lt;/P&gt;</description>
      <pubDate>Mon, 06 Jul 2015 09:23:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-provide-permissions-for-kvstore-lookups/m-p/171672#M49205</guid>
      <dc:creator>philip_wong</dc:creator>
      <dc:date>2015-07-06T09:23:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to provide permissions for kvstore lookups?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-provide-permissions-for-kvstore-lookups/m-p/171673#M49206</link>
      <description>&lt;P&gt;Hi spyme,&lt;/P&gt;

&lt;P&gt;You can manage permission in local.meta (or default.meta) via the following stanza:&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;[collections/mycollection]&lt;BR /&gt;
access = read : [ * ], write : [ admin, win-l1,win-l2 ]&lt;BR /&gt;
&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;HtH,&lt;/P&gt;</description>
      <pubDate>Mon, 06 Jul 2015 14:05:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-provide-permissions-for-kvstore-lookups/m-p/171673#M49206</guid>
      <dc:creator>nicolasydder</dc:creator>
      <dc:date>2015-07-06T14:05:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to provide permissions for kvstore lookups?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-provide-permissions-for-kvstore-lookups/m-p/171674#M49207</link>
      <description>&lt;P&gt;If the kvstore exists and if you still facing the issue and the kvstore is created under default folder ,add access in default.meta&lt;/P&gt;

&lt;P&gt;In default meta : &lt;/P&gt;

&lt;P&gt;[ ]&lt;BR /&gt;
access = read : [ * ], write : [ admin, win-l1,win-l2 ].&lt;/P&gt;

&lt;P&gt;Hope this helps some one .&lt;/P&gt;

&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Wed, 09 Nov 2016 23:45:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-provide-permissions-for-kvstore-lookups/m-p/171674#M49207</guid>
      <dc:creator>splunk403</dc:creator>
      <dc:date>2016-11-09T23:45:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to provide permissions for kvstore lookups?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-provide-permissions-for-kvstore-lookups/m-p/171675#M49208</link>
      <description>&lt;P&gt;Hi Nicolasdder&lt;/P&gt;

&lt;P&gt;Thanks, This solution works fro my problem. &lt;BR /&gt;
I had to provide write access to the kvstore  I was only changing &lt;BR /&gt;
[transforms/sample_kvstore]&lt;BR /&gt;
access = read : [ * ], write : [ sample_kvstore_user, admin, power ]&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 12:21:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-provide-permissions-for-kvstore-lookups/m-p/171675#M49208</guid>
      <dc:creator>yogesh_punia</dc:creator>
      <dc:date>2020-09-29T12:21:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to provide permissions for kvstore lookups?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-provide-permissions-for-kvstore-lookups/m-p/171676#M49209</link>
      <description>&lt;P&gt;I am a Splunk Cloud customer who can not make configuration changes directly.&lt;BR /&gt;
I was able to work around this by adding the backend collection via REST:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;curl -k -u &amp;lt;username&amp;gt;:&amp;lt;password&amp;gt; -d name=&amp;lt;collections_name&amp;gt; &lt;A href="https://&amp;lt;youraccountname&amp;gt;.splunkcloud.com:8089/servicesNS/nobody/&amp;lt;app-name&amp;gt;/storage/collections/config" target="test_blank"&gt;https://&amp;lt;youraccountname&amp;gt;.splunkcloud.com:8089/servicesNS/nobody/&amp;lt;app-name&amp;gt;/storage/collections/config&lt;/A&gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 28 Nov 2018 17:31:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-provide-permissions-for-kvstore-lookups/m-p/171676#M49209</guid>
      <dc:creator>markbarber21</dc:creator>
      <dc:date>2018-11-28T17:31:12Z</dc:date>
    </item>
  </channel>
</rss>

