<?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 REST in Splunk 7.0.1: Only 'nobody' allowed to access kvstores? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/REST-in-Splunk-7-0-1-Only-nobody-allowed-to-access-kvstores/m-p/451468#M94364</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I am writing a script to push relevant data from our apps into a kvstore for use as a lookup.&lt;/P&gt;

&lt;P&gt;When querying the api endpoint, I'm encountering an error.&lt;/P&gt;

&lt;P&gt;The uri I'm accessing is: /services/storage/collections/config/?output_mode=json&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;HTTP 400:
{
  "messages": [{
    "type": "ERROR",
    "text": "Must use user context of 'nobody' when interacting with collection configurations (used user='admin')"
  }]
}
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Hunting around for solutions, I found that this was a bug in earlier versions of Splunk.&lt;/P&gt;

&lt;P&gt;From /answers/357860/create-a-custom-splunk-view-tutorial-not-working.html&lt;/P&gt;

&lt;HR /&gt;

&lt;P&gt;The debug/refresh endpoint will reload configs that are available under /servicesNS/admin/search/admin endpoint. Under the admin endpoint, we have collection-conf endpoint which does provide _reload option, thus it would throw the following type of error.&lt;/P&gt;

&lt;P&gt;In handler 'collections-conf': Must use user context of 'nobody' when interacting with collection configurations (used user='admin')&lt;/P&gt;

&lt;P&gt;This collections-conf issue/error has now been addressed in the following releases:&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;- Splunk 6.2.8 - (bug: SPL-107404)&lt;/STRONG&gt;&lt;BR /&gt;
&lt;STRONG&gt;- Splunk 6.3.4 - (bug: SPL-111358)&lt;/STRONG&gt;&lt;BR /&gt;
&lt;STRONG&gt;- Splunk 6.4.0 - (bug: SPL-111360)&lt;/STRONG&gt;&lt;/P&gt;

&lt;HR /&gt;

&lt;P&gt;Is this also an error in 7.0.1 which is fixed in a later patch? If so I can ask our operations group to update it. If not, what am I doing wrong here?&lt;/P&gt;

&lt;P&gt;Thank you very much.&lt;/P&gt;</description>
    <pubDate>Thu, 19 Jul 2018 02:01:40 GMT</pubDate>
    <dc:creator>fhenskens</dc:creator>
    <dc:date>2018-07-19T02:01:40Z</dc:date>
    <item>
      <title>REST in Splunk 7.0.1: Only 'nobody' allowed to access kvstores?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/REST-in-Splunk-7-0-1-Only-nobody-allowed-to-access-kvstores/m-p/451468#M94364</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I am writing a script to push relevant data from our apps into a kvstore for use as a lookup.&lt;/P&gt;

&lt;P&gt;When querying the api endpoint, I'm encountering an error.&lt;/P&gt;

&lt;P&gt;The uri I'm accessing is: /services/storage/collections/config/?output_mode=json&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;HTTP 400:
{
  "messages": [{
    "type": "ERROR",
    "text": "Must use user context of 'nobody' when interacting with collection configurations (used user='admin')"
  }]
}
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Hunting around for solutions, I found that this was a bug in earlier versions of Splunk.&lt;/P&gt;

&lt;P&gt;From /answers/357860/create-a-custom-splunk-view-tutorial-not-working.html&lt;/P&gt;

&lt;HR /&gt;

&lt;P&gt;The debug/refresh endpoint will reload configs that are available under /servicesNS/admin/search/admin endpoint. Under the admin endpoint, we have collection-conf endpoint which does provide _reload option, thus it would throw the following type of error.&lt;/P&gt;

&lt;P&gt;In handler 'collections-conf': Must use user context of 'nobody' when interacting with collection configurations (used user='admin')&lt;/P&gt;

&lt;P&gt;This collections-conf issue/error has now been addressed in the following releases:&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;- Splunk 6.2.8 - (bug: SPL-107404)&lt;/STRONG&gt;&lt;BR /&gt;
&lt;STRONG&gt;- Splunk 6.3.4 - (bug: SPL-111358)&lt;/STRONG&gt;&lt;BR /&gt;
&lt;STRONG&gt;- Splunk 6.4.0 - (bug: SPL-111360)&lt;/STRONG&gt;&lt;/P&gt;

&lt;HR /&gt;

&lt;P&gt;Is this also an error in 7.0.1 which is fixed in a later patch? If so I can ask our operations group to update it. If not, what am I doing wrong here?&lt;/P&gt;

&lt;P&gt;Thank you very much.&lt;/P&gt;</description>
      <pubDate>Thu, 19 Jul 2018 02:01:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/REST-in-Splunk-7-0-1-Only-nobody-allowed-to-access-kvstores/m-p/451468#M94364</guid>
      <dc:creator>fhenskens</dc:creator>
      <dc:date>2018-07-19T02:01:40Z</dc:date>
    </item>
    <item>
      <title>Re: REST in Splunk 7.0.1: Only 'nobody' allowed to access kvstores?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/REST-in-Splunk-7-0-1-Only-nobody-allowed-to-access-kvstores/m-p/451469#M94365</link>
      <description>&lt;P&gt;Having same problem using splunk-python-sdk 1.6.5 against 7.0.2&lt;/P&gt;

&lt;P&gt;Error : Traceback: Traceback (most recent call last):&lt;BR /&gt;
  File "anonymizer2.py", line 99, in &lt;BR /&gt;
    collection = myservice.kvstore['usercoll']&lt;BR /&gt;
  File "/opt/splunk/splunk-sdk-python/splunklib/client.py", line 1227, in &lt;STRONG&gt;getitem&lt;/STRONG&gt;&lt;BR /&gt;
    response = self.get(key)&lt;BR /&gt;
  File "/opt/splunk/splunk-sdk-python/splunklib/client.py", line 1655, in get&lt;BR /&gt;
    return super(Collection, self).get(name, owner, app, sharing, **query)&lt;BR /&gt;
  File "/opt/splunk/splunk-sdk-python/splunklib/client.py", line 753, in get&lt;BR /&gt;
    **query)&lt;BR /&gt;
  File "/opt/splunk/splunk-sdk-python/splunklib/binding.py", line 289, in wrapper&lt;BR /&gt;
    return request_fun(self, *args, **kwargs)&lt;BR /&gt;
  File "/opt/splunk/splunk-sdk-python/splunklib/binding.py", line 71, in new_f&lt;BR /&gt;
    val = f(*args, **kwargs)&lt;BR /&gt;
  File "/opt/splunk/splunk-sdk-python/splunklib/binding.py", line 669, in get&lt;BR /&gt;
    response = self.http.get(path, self._auth_headers, **query)&lt;BR /&gt;
  File "/opt/splunk/splunk-sdk-python/splunklib/binding.py", line 1167, in get&lt;BR /&gt;
    return self.request(url, { 'method': "GET", 'headers': headers })&lt;BR /&gt;
  File "/opt/splunk/splunk-sdk-python/splunklib/binding.py", line 1228, in request&lt;BR /&gt;
    raise HTTPError(response)&lt;BR /&gt;
HTTPError: HTTP 400 Bad Request -- Must use user context of 'nobody' when interacting with collection configurations (used user='intuser')&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 21:26:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/REST-in-Splunk-7-0-1-Only-nobody-allowed-to-access-kvstores/m-p/451469#M94365</guid>
      <dc:creator>wkupersa</dc:creator>
      <dc:date>2020-09-29T21:26:07Z</dc:date>
    </item>
  </channel>
</rss>

