<?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 Set namespace for a search with PythonSDK in Splunk Dev</title>
    <link>https://community.splunk.com/t5/Splunk-Dev/Set-namespace-for-a-search-with-PythonSDK/m-p/56143#M720</link>
    <description>&lt;P&gt;It is possible to set the namespace for a search job with the pythonSDK? Something like:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;service = client.connect()
job = service.jobs.create('search * | head 5', namespace='SplunkForNagios')
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I know I can set the app in the connect() call, but I was hoping to keep a global connection open, and just set the app when I execute a search.&lt;/P&gt;</description>
    <pubDate>Wed, 05 Jun 2013 16:47:25 GMT</pubDate>
    <dc:creator>aarcro</dc:creator>
    <dc:date>2013-06-05T16:47:25Z</dc:date>
    <item>
      <title>Set namespace for a search with PythonSDK</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Set-namespace-for-a-search-with-PythonSDK/m-p/56143#M720</link>
      <description>&lt;P&gt;It is possible to set the namespace for a search job with the pythonSDK? Something like:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;service = client.connect()
job = service.jobs.create('search * | head 5', namespace='SplunkForNagios')
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I know I can set the app in the connect() call, but I was hoping to keep a global connection open, and just set the app when I execute a search.&lt;/P&gt;</description>
      <pubDate>Wed, 05 Jun 2013 16:47:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Set-namespace-for-a-search-with-PythonSDK/m-p/56143#M720</guid>
      <dc:creator>aarcro</dc:creator>
      <dc:date>2013-06-05T16:47:25Z</dc:date>
    </item>
    <item>
      <title>Re: Set namespace for a search with PythonSDK</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Set-namespace-for-a-search-with-PythonSDK/m-p/56144#M721</link>
      <description>&lt;P&gt;this works:&lt;/P&gt;

&lt;P&gt;job = service.jobs.create('search * | head 5', app='SplunkForNagios')&lt;/P&gt;

&lt;P&gt;So the PythonSDK must map the keyword app to the REST API parameter namespace.&lt;/P&gt;</description>
      <pubDate>Wed, 05 Jun 2013 17:00:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Set-namespace-for-a-search-with-PythonSDK/m-p/56144#M721</guid>
      <dc:creator>aarcro</dc:creator>
      <dc:date>2013-06-05T17:00:54Z</dc:date>
    </item>
  </channel>
</rss>

