<?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 Using Python SDK to run search against data model -- permissions issues in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Using-Python-SDK-to-run-search-against-data-model-permissions/m-p/331126#M61341</link>
    <description>&lt;P&gt;All I'm running a query using python SDK against a data model stored in a custom app. I get the response:&lt;/P&gt;

&lt;P&gt;FATAL: Error in 'TsidxStats': Could not find datamodel: MYDATAMODEL&lt;/P&gt;

&lt;P&gt;I know this error is caused because the DM is set to App level permissions. It appears the search via the SDK is being dispatched from a default location (maybe search app?).&lt;/P&gt;

&lt;P&gt;Can someone let me know if it's possible to explicitly set the dispatch app when running requests through the SDK?&lt;/P&gt;</description>
    <pubDate>Tue, 23 Jan 2018 07:52:36 GMT</pubDate>
    <dc:creator>himynamesdave</dc:creator>
    <dc:date>2018-01-23T07:52:36Z</dc:date>
    <item>
      <title>Using Python SDK to run search against data model -- permissions issues</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Using-Python-SDK-to-run-search-against-data-model-permissions/m-p/331126#M61341</link>
      <description>&lt;P&gt;All I'm running a query using python SDK against a data model stored in a custom app. I get the response:&lt;/P&gt;

&lt;P&gt;FATAL: Error in 'TsidxStats': Could not find datamodel: MYDATAMODEL&lt;/P&gt;

&lt;P&gt;I know this error is caused because the DM is set to App level permissions. It appears the search via the SDK is being dispatched from a default location (maybe search app?).&lt;/P&gt;

&lt;P&gt;Can someone let me know if it's possible to explicitly set the dispatch app when running requests through the SDK?&lt;/P&gt;</description>
      <pubDate>Tue, 23 Jan 2018 07:52:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Using-Python-SDK-to-run-search-against-data-model-permissions/m-p/331126#M61341</guid>
      <dc:creator>himynamesdave</dc:creator>
      <dc:date>2018-01-23T07:52:36Z</dc:date>
    </item>
    <item>
      <title>Re: Using Python SDK to run search against data model -- permissions issues</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Using-Python-SDK-to-run-search-against-data-model-permissions/m-p/331127#M61342</link>
      <description>&lt;P&gt;You need to include your app path in the URL.  In curl it might look like:&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;curl -k -u admin &lt;A href="https://localhost:8089/servicesNS/&amp;lt;your" target="test_blank"&gt;https://localhost:8089/servicesNS/&amp;lt;your&lt;/A&gt; user&amp;gt;/&amp;lt;your app&amp;gt;/search/jobs/ -d search="| tstats count FROM datamodel=&amp;lt;your datamodel&amp;gt;"&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;Where &lt;CODE&gt;&amp;lt;your app&amp;gt;&lt;/CODE&gt; is the app path as shown in the URL bar of your browser while using that app.&lt;/P&gt;</description>
      <pubDate>Tue, 23 Jan 2018 15:20:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Using-Python-SDK-to-run-search-against-data-model-permissions/m-p/331127#M61342</guid>
      <dc:creator>micahkemp</dc:creator>
      <dc:date>2018-01-23T15:20:15Z</dc:date>
    </item>
  </channel>
</rss>

