<?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: REST query for saved searches only returns owner=&amp;quot;nobody&amp;quot; results in Splunk Dev</title>
    <link>https://community.splunk.com/t5/Splunk-Dev/REST-query-for-saved-searches-only-returns-owner-quot-nobody/m-p/166187#M2208</link>
    <description>&lt;P&gt;By default the API returns the saved searches present in current namespace. See this link &lt;A href="http://"&gt;http://dev.splunk.com/view/python-sdk/SP-CAAAEK2#listsaved&lt;/A&gt; the section "To list saved searches" will help you to retrieve what you need. You should create a separate service class.&lt;/P&gt;

&lt;P&gt;for overview on namespaces read this. &lt;A href="http://"&gt;http://dev.splunk.com/view/python-sdk/SP-CAAAEBB#namespaces&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 31 Jul 2014 20:04:49 GMT</pubDate>
    <dc:creator>strive</dc:creator>
    <dc:date>2014-07-31T20:04:49Z</dc:date>
    <item>
      <title>REST query for saved searches only returns owner="nobody" results</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/REST-query-for-saved-searches-only-returns-owner-quot-nobody/m-p/166186#M2207</link>
      <description>&lt;P&gt;I am trying to build an application that leverages our Splunk Enterprise&lt;BR /&gt;
setup using Python. I want to get a list of all saved searches (reports),&lt;BR /&gt;
then get a list of the results of those searches. When I connect to Splunk&lt;BR /&gt;
via the API and query for saved searches it only returns searches owned by&lt;BR /&gt;
"nobody", but when I view the searches in the Web UI I see all the searches&lt;BR /&gt;
saved by everybody.&lt;/P&gt;

&lt;P&gt;How can I view the searches saved by everybody, or even a specific user?&lt;/P&gt;

&lt;P&gt;Here is a very basic version of what I'm trying to do:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;import splunklib.client as client
import splunklib.results as results

CONNECT_DICT = {
    'username': removed,
    'password': removed,
    'host': removed,
    'port': removed
}

service = client.connect(**CONNECT_DICT)

saved_searches = service.saved_searches

for saved_search in saved_searches:
    print "%s: %s" % (saved_search.name, saved_search['search'])
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Thanks for any info.&lt;/P&gt;</description>
      <pubDate>Thu, 31 Jul 2014 19:29:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/REST-query-for-saved-searches-only-returns-owner-quot-nobody/m-p/166186#M2207</guid>
      <dc:creator>the4tress</dc:creator>
      <dc:date>2014-07-31T19:29:13Z</dc:date>
    </item>
    <item>
      <title>Re: REST query for saved searches only returns owner="nobody" results</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/REST-query-for-saved-searches-only-returns-owner-quot-nobody/m-p/166187#M2208</link>
      <description>&lt;P&gt;By default the API returns the saved searches present in current namespace. See this link &lt;A href="http://"&gt;http://dev.splunk.com/view/python-sdk/SP-CAAAEK2#listsaved&lt;/A&gt; the section "To list saved searches" will help you to retrieve what you need. You should create a separate service class.&lt;/P&gt;

&lt;P&gt;for overview on namespaces read this. &lt;A href="http://"&gt;http://dev.splunk.com/view/python-sdk/SP-CAAAEBB#namespaces&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 31 Jul 2014 20:04:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/REST-query-for-saved-searches-only-returns-owner-quot-nobody/m-p/166187#M2208</guid>
      <dc:creator>strive</dc:creator>
      <dc:date>2014-07-31T20:04:49Z</dc:date>
    </item>
    <item>
      <title>Re: REST query for saved searches only returns owner="nobody" results</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/REST-query-for-saved-searches-only-returns-owner-quot-nobody/m-p/166188#M2209</link>
      <description>&lt;P&gt;see this also&lt;/P&gt;

&lt;P&gt;&lt;A href="http://answers.splunk.com/answers/107423/using-splunk-rest-to-list-saved-searches-only-returns-a-limited-set-of-results"&gt;http://answers.splunk.com/answers/107423/using-splunk-rest-to-list-saved-searches-only-returns-a-limited-set-of-results&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 31 Jul 2014 20:06:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/REST-query-for-saved-searches-only-returns-owner-quot-nobody/m-p/166188#M2209</guid>
      <dc:creator>strive</dc:creator>
      <dc:date>2014-07-31T20:06:47Z</dc:date>
    </item>
    <item>
      <title>Re: REST query for saved searches only returns owner="nobody" results</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/REST-query-for-saved-searches-only-returns-owner-quot-nobody/m-p/166189#M2210</link>
      <description>&lt;P&gt;Thanks @strive. That got me one step closer. I'm having permissions issues on my service account now. It doesn't have permission to access other user's saved searches.&lt;/P&gt;

&lt;P&gt;I posted the question here: &lt;A href="http://answers.splunk.com/answers/149067/permissions-issue-access-saved-searches"&gt;http://answers.splunk.com/answers/149067/permissions-issue-access-saved-searches&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 04 Aug 2014 13:26:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/REST-query-for-saved-searches-only-returns-owner-quot-nobody/m-p/166189#M2210</guid>
      <dc:creator>the4tress</dc:creator>
      <dc:date>2014-08-04T13:26:49Z</dc:date>
    </item>
  </channel>
</rss>

