<?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 enable rest-api? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-to-enable-rest-api/m-p/442121#M77059</link>
    <description>&lt;BLOCKQUOTE&gt;
&lt;P&gt;Blockquote&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;

&lt;P&gt;1536009195.1426&lt;/P&gt;

&lt;BLOCKQUOTE&gt;
&lt;P&gt;&lt;CODE&gt;Blockquote&lt;/CODE&gt;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;</description>
    <pubDate>Mon, 03 Sep 2018 21:17:13 GMT</pubDate>
    <dc:creator>rajanshrivastav</dc:creator>
    <dc:date>2018-09-03T21:17:13Z</dc:date>
    <item>
      <title>How to enable rest-api?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-enable-rest-api/m-p/442117#M77055</link>
      <description>&lt;P&gt;Hi Team,&lt;/P&gt;

&lt;P&gt;I'm running Splunk on AWS ec2 instance backed by AWS ALB.&lt;BR /&gt;
I've created target group for port 80,443 &amp;amp; 8089 for splunk. Security groups &amp;amp; network ACL are already opened for these ports.&lt;BR /&gt;
But whenever I do "curl -k &lt;A href="http://localhost:8089/en-us"&gt;http://localhost:8089/en-us&lt;/A&gt;", &lt;BR /&gt;
it says -- "curl: (56) Recv failure: Connection reset by peer"&lt;/P&gt;

&lt;P&gt;I'm accessing it as a root user , also I've admin credentials as well.&lt;/P&gt;

&lt;P&gt;Please let me know how I can access this port, I've a requirement to enable rest-api. I checked for other articles but I didn't find any satisfactory answers. I got to know that rest-api works for everyone, but in my case it is not working.&lt;/P&gt;

&lt;P&gt;Please help me enabling rest-api features.&lt;/P&gt;

&lt;P&gt;Thanks,&lt;/P&gt;</description>
      <pubDate>Mon, 03 Sep 2018 18:18:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-enable-rest-api/m-p/442117#M77055</guid>
      <dc:creator>rajanshrivastav</dc:creator>
      <dc:date>2018-09-03T18:18:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to enable rest-api?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-enable-rest-api/m-p/442118#M77056</link>
      <description>&lt;P&gt;As per my knowledge, there is no enable/disable for rest API.&lt;BR /&gt;
(Maybe, roles/capabilities issue can occur)&lt;/P&gt;

&lt;P&gt;To verify, Simply run...(replace the admin:changeme to your username:password)&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;curl -k -u admin:changeme &lt;A href="https://localhost:8089/services/search/jobs" target="test_blank"&gt;https://localhost:8089/services/search/jobs&lt;/A&gt; --data-urlencode 'search=search index="_internal" | head 1'&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 03 Sep 2018 21:08:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-enable-rest-api/m-p/442118#M77056</guid>
      <dc:creator>inventsekar</dc:creator>
      <dc:date>2018-09-03T21:08:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to enable rest-api?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-enable-rest-api/m-p/442119#M77057</link>
      <description>&lt;P&gt;After running above command, it is showing following result-&lt;/P&gt;

&lt;P&gt;1536009195.1426&lt;/P&gt;</description>
      <pubDate>Mon, 03 Sep 2018 21:14:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-enable-rest-api/m-p/442119#M77057</guid>
      <dc:creator>rajanshrivastav</dc:creator>
      <dc:date>2018-09-03T21:14:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to enable rest-api?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-enable-rest-api/m-p/442120#M77058</link>
      <description>&lt;P&gt;"&lt;/P&gt;

&lt;P&gt;1536009195.1426&lt;/P&gt;

&lt;P&gt;"&lt;/P&gt;</description>
      <pubDate>Mon, 03 Sep 2018 21:15:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-enable-rest-api/m-p/442120#M77058</guid>
      <dc:creator>rajanshrivastav</dc:creator>
      <dc:date>2018-09-03T21:15:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to enable rest-api?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-enable-rest-api/m-p/442121#M77059</link>
      <description>&lt;BLOCKQUOTE&gt;
&lt;P&gt;Blockquote&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;

&lt;P&gt;1536009195.1426&lt;/P&gt;

&lt;BLOCKQUOTE&gt;
&lt;P&gt;&lt;CODE&gt;Blockquote&lt;/CODE&gt;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;</description>
      <pubDate>Mon, 03 Sep 2018 21:17:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-enable-rest-api/m-p/442121#M77059</guid>
      <dc:creator>rajanshrivastav</dc:creator>
      <dc:date>2018-09-03T21:17:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to enable rest-api?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-enable-rest-api/m-p/442122#M77060</link>
      <description>&lt;P&gt;Hi rajanshrivastav786,&lt;/P&gt;

&lt;BLOCKQUOTE&gt;
&lt;P&gt;But whenever I do "curl -k&lt;BR /&gt;
&lt;A href="http://localhost:8089/en-us"&gt;http://localhost:8089/en-us&lt;/A&gt;",&lt;BR /&gt;
Your problem is that you are using port 8089 AND http, the management port and therefore the REST API uses SSL by default.&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;

&lt;P&gt;Just use &lt;CODE&gt;curl -k &lt;A href="https://localhost:8089/" target="test_blank"&gt;https://localhost:8089/&lt;/A&gt;&lt;/CODE&gt; instead and it works.&lt;/P&gt;

&lt;P&gt;cheers, MuS&lt;/P&gt;</description>
      <pubDate>Tue, 04 Sep 2018 02:28:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-enable-rest-api/m-p/442122#M77060</guid>
      <dc:creator>MuS</dc:creator>
      <dc:date>2018-09-04T02:28:22Z</dc:date>
    </item>
  </channel>
</rss>

