<?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 How to post data to Splunk from installed Python app using REST API without using auth credentials? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-to-post-data-to-Splunk-from-installed-Python-app-using-REST/m-p/227873#M44404</link>
    <description>&lt;P&gt;I am developing an app for Splunk in Python. I want to add some CSV data to Splunk through this app.&lt;BR /&gt;
I don't have auth credentials for this user. How to achieve this?&lt;BR /&gt;
A user is already logged in to the Splunk and using my app. I want to push some data to Splunk.&lt;/P&gt;</description>
    <pubDate>Thu, 17 Sep 2015 22:02:57 GMT</pubDate>
    <dc:creator>aniket_amrutkar</dc:creator>
    <dc:date>2015-09-17T22:02:57Z</dc:date>
    <item>
      <title>How to post data to Splunk from installed Python app using REST API without using auth credentials?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-post-data-to-Splunk-from-installed-Python-app-using-REST/m-p/227873#M44404</link>
      <description>&lt;P&gt;I am developing an app for Splunk in Python. I want to add some CSV data to Splunk through this app.&lt;BR /&gt;
I don't have auth credentials for this user. How to achieve this?&lt;BR /&gt;
A user is already logged in to the Splunk and using my app. I want to push some data to Splunk.&lt;/P&gt;</description>
      <pubDate>Thu, 17 Sep 2015 22:02:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-post-data-to-Splunk-from-installed-Python-app-using-REST/m-p/227873#M44404</guid>
      <dc:creator>aniket_amrutkar</dc:creator>
      <dc:date>2015-09-17T22:02:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to post data to Splunk from installed Python app using REST API without using auth credentials?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-post-data-to-Splunk-from-installed-Python-app-using-REST/m-p/227874#M44405</link>
      <description>&lt;P&gt;do you have a question here? &lt;/P&gt;</description>
      <pubDate>Thu, 17 Sep 2015 22:27:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-post-data-to-Splunk-from-installed-Python-app-using-REST/m-p/227874#M44405</guid>
      <dc:creator>piebob</dc:creator>
      <dc:date>2015-09-17T22:27:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to post data to Splunk from installed Python app using REST API without using auth credentials?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-post-data-to-Splunk-from-installed-Python-app-using-REST/m-p/227875#M44406</link>
      <description>&lt;P&gt;Hi aniket_amrutkar,&lt;/P&gt;

&lt;P&gt;you can use &lt;CODE&gt;results,dummyresults,settings = splunk.Intersplunk.getOrganizedResults()&lt;/CODE&gt; in your python script and use the &lt;CODE&gt;sessionKey&lt;/CODE&gt;, &lt;CODE&gt;owner&lt;/CODE&gt; and &lt;CODE&gt;namespace&lt;/CODE&gt; like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;sessionKey = settings.get("sessionKey", None)
owner = settings.get("owner", None)
namespace = settings.get("namespace", None)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;As always, see the docs &lt;A href="http://docs.splunk.com/Documentation/Splunk/6.3.0/Search/Aboutcustomsearchcommands"&gt;http://docs.splunk.com/Documentation/Splunk/6.3.0/Search/Aboutcustomsearchcommands&lt;/A&gt; for more details.&lt;/P&gt;

&lt;P&gt;cheers, MuS&lt;/P&gt;</description>
      <pubDate>Sun, 20 Sep 2015 23:35:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-post-data-to-Splunk-from-installed-Python-app-using-REST/m-p/227875#M44406</guid>
      <dc:creator>MuS</dc:creator>
      <dc:date>2015-09-20T23:35:54Z</dc:date>
    </item>
  </channel>
</rss>

