<?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: How to use REST API in Splunk? in Splunk Enterprise</title>
    <link>https://community.splunk.com/t5/Splunk-Enterprise/How-to-use-REST-API-in-Splunk/m-p/623551#M14728</link>
    <description>&lt;P&gt;Hi Rendie ,&lt;/P&gt;&lt;P&gt;I know i am late to the thread , is this below issue resolved? if so could you please let me know the resolution.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in Advance&lt;/P&gt;</description>
    <pubDate>Wed, 07 Dec 2022 10:26:27 GMT</pubDate>
    <dc:creator>charan001</dc:creator>
    <dc:date>2022-12-07T10:26:27Z</dc:date>
    <item>
      <title>How to use REST API in Splunk?</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/How-to-use-REST-API-in-Splunk/m-p/535997#M4710</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I have a little trouble with using REST API in Splunk via curl and postman.&lt;/P&gt;&lt;P&gt;I have my own Splunk application with a python script which is available by link&amp;nbsp;&lt;A href="http://splunk:8000/en-US/splunkd/__raw/services/appname/pyscript" target="_blank"&gt;http://splunk:8000/en-US/splunkd/__raw/services/appname/pyscript&lt;/A&gt;.&lt;BR /&gt;And I wanna get access to this file via PostMan or Curl. In the first step, I created sessionsKey - successful.&lt;/P&gt;&lt;P&gt;But when I want to use this key in the header "&lt;SPAN&gt;Authorization: Splunk &amp;lt;key&amp;gt;&lt;/SPAN&gt;" via POST/GET then via curl I see "303 see other", and via postman - "&lt;SPAN&gt;Splunk relies on JavaScript to function properly.&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;Please enable JavaScript and then refresh the page to login.&lt;/SPAN&gt;"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Where I wrong?&lt;/P&gt;</description>
      <pubDate>Fri, 15 Jan 2021 12:22:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/How-to-use-REST-API-in-Splunk/m-p/535997#M4710</guid>
      <dc:creator>rendie</dc:creator>
      <dc:date>2021-01-15T12:22:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to use REST API in Splunk?</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/How-to-use-REST-API-in-Splunk/m-p/623551#M14728</link>
      <description>&lt;P&gt;Hi Rendie ,&lt;/P&gt;&lt;P&gt;I know i am late to the thread , is this below issue resolved? if so could you please let me know the resolution.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in Advance&lt;/P&gt;</description>
      <pubDate>Wed, 07 Dec 2022 10:26:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/How-to-use-REST-API-in-Splunk/m-p/623551#M14728</guid>
      <dc:creator>charan001</dc:creator>
      <dc:date>2022-12-07T10:26:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to use REST API in Splunk?</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/How-to-use-REST-API-in-Splunk/m-p/623552#M14729</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Alas, I did not find the correct solution for this problem. I got around the problem by using cookies in requests.&lt;/P&gt;&lt;P&gt;1. Made a login through the browser&lt;BR /&gt;2. Got the cookie and used it in Python script&lt;/P&gt;&lt;P&gt;Alas, this is the only way that worked for me.&lt;/P&gt;</description>
      <pubDate>Wed, 07 Dec 2022 10:32:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/How-to-use-REST-API-in-Splunk/m-p/623552#M14729</guid>
      <dc:creator>rendie</dc:creator>
      <dc:date>2022-12-07T10:32:20Z</dc:date>
    </item>
  </channel>
</rss>

