<?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 do I use the REST API? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-do-I-use-the-REST-API/m-p/148009#M30111</link>
    <description>&lt;P&gt;You're using the wrong port. Port 8000 is Splunk's regular web interface. The REST API is available on port 8089 (over HTTPS).&lt;/P&gt;</description>
    <pubDate>Wed, 12 Feb 2014 15:17:24 GMT</pubDate>
    <dc:creator>Ayn</dc:creator>
    <dc:date>2014-02-12T15:17:24Z</dc:date>
    <item>
      <title>How do I use the REST API?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-I-use-the-REST-API/m-p/148006#M30108</link>
      <description>&lt;P&gt;I've been trying to follow the instructions on the following site: &lt;/P&gt;

&lt;P&gt;&lt;A href="http://dev.splunk.com/view/SP-CAAADQT"&gt;http://dev.splunk.com/view/SP-CAAADQT&lt;/A&gt; &lt;/P&gt;

&lt;P&gt;However, I keep getting the issue that the page cannot be found (I'll paste the exact output I get from the following call at the bottom). I might be missing a step so please let me know if there's something else I need to do first. Thanks in advance. &lt;/P&gt;

&lt;P&gt;This call (note that I do not use https b/c the secure connection was not found at all)&lt;/P&gt;

&lt;P&gt;curl -u admin:&lt;PASSWORD&gt; -k &lt;A href="http://localhost:8000/serviceNS/admin/search"&gt;http://localhost:8000/serviceNS/admin/search&lt;/A&gt;&lt;/PASSWORD&gt;&lt;/P&gt;

&lt;P&gt;outputs&lt;/P&gt;

&lt;P&gt;&amp;lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "&lt;A href="http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd%22%3E"&gt;http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"&amp;gt;&lt;/A&gt;&lt;BR /&gt;
&amp;lt;!--&lt;BR /&gt;
    This is a static HTML string template to render errors.  To edit this&lt;BR /&gt;
    template, see appserver/mrsparkle/lib/error.py.&lt;BR /&gt;
--&amp;gt;&lt;/P&gt;

&lt;P&gt;&lt;BR /&gt;
&lt;BR /&gt;
    &lt;META http-equiv="content-type" content="text/html; charset=utf-8" /&gt;&lt;BR /&gt;
    &lt;LINK rel="shortcut icon" href="https://answers.splunk.comen-US/static/@182037/img/favicon.ico" /&gt;&lt;BR /&gt;
    &lt;TITLE&gt;The path '/en-US/serviceNS/admin/search/auth/login/' was not found. - Splunk&lt;/TITLE&gt;&lt;BR /&gt;
    &lt;STYLE&gt;&amp;lt;/p&amp;gt;

&amp;lt;pre&amp;gt;&amp;lt;code&amp;gt;    *       { margin: 0; padding: 0; }
    body    { font-family: helvetica, arial, sans-serif; color: #333; padding: 20px; }
    p,pre   { margin-bottom: 1em; font-size: .8em; }
    .status { font-size: .7em; color: #999; margin-bottom: 1em; }
    .msg    { margin-bottom: 1em; font-size: 1.4em;}
    pre     { font-family: Monaco,Courier Bold,Courier New,monospace; font-size: .7em;background-color: #eee;  padding: 5px;}
    #toggle { font-size: .8em; margin-bottom: 1em; }
    .byline { color: #555; }
    .byline span { font-weight: bold; line-height: 1.4em; }
    hr      { height: 1px; background-color: #ccc; border: 0; margin: 20px 0 10px; }
    h2      { font-size: 1em; margin-bottom: 1em; }
    table   { border-collapse: collapse; }
    td      { padding: 2px; }
    td.k    { font-family: helvetica, arial, sans-serif; font-weight: bold; }
    #debug  { display: none; }

    #crashes { margin: 20px 0; padding: 10px; border: 1px solid #800; }
    #crashes dt { font-size: 12px; margin-bottom: 5px; }
    #crashes dd { white-space: pre; background: #f2f2f2; padding: 10px; margin-left: 20px; display: none; font: 10px Monaco,Courier Bold,Courier New,monospace; }

&amp;amp;lt;/style&amp;amp;gt;
&amp;amp;lt;script&amp;amp;gt;
    function toggle(what) {
        what = document.getElementById(what);
        if (what.style.display == &amp;amp;#39;block&amp;amp;#39;) {
            what.style.display = &amp;amp;#39;none&amp;amp;#39;;
        } else {
            what.style.display = &amp;amp;#39;block&amp;amp;#39;;
        }
    }
&amp;amp;lt;/script&amp;amp;gt;
&amp;lt;/code&amp;gt;&amp;lt;/pre&amp;gt;

&amp;lt;p&amp;gt;&amp;lt;/head&amp;gt;&amp;lt;br&amp;gt;
&amp;lt;body&amp;gt;&amp;lt;br&amp;gt;
    &amp;lt;p class="status"&amp;gt;404 Not Found&amp;lt;/p&amp;gt;&amp;lt;br&amp;gt;
    &amp;lt;p class="homelink"&amp;gt;&amp;lt;a href="https://answers.splunk.com"&amp;gt;Return to Splunk home page&amp;lt;/a&amp;gt;&amp;lt;/p&amp;gt;&amp;lt;br&amp;gt;
    &amp;lt;h1 class="msg"&amp;gt;The path &amp;amp;#39;/en-US/serviceNS/admin/search/auth/login/&amp;amp;#39; was not found.&amp;lt;/h1&amp;gt;&amp;lt;/p&amp;gt;

&amp;lt;pre&amp;gt;&amp;lt;code&amp;gt;&amp;amp;lt;br /&amp;amp;gt;
&amp;amp;lt;br /&amp;amp;gt;

&amp;amp;lt;hr /&amp;amp;gt;
&amp;amp;lt;p class=&amp;amp;quot;byline&amp;amp;quot;&amp;amp;gt;You are using &amp;amp;lt;span&amp;amp;gt;localhost:8000&amp;amp;lt;/span&amp;amp;gt;, which is connected to splunkd &amp;amp;lt;span&amp;amp;gt;@182037&amp;amp;lt;/span&amp;amp;gt; at &amp;amp;lt;span&amp;amp;gt;https://127.0.0.1:8089&amp;amp;lt;/span&amp;amp;gt; on &amp;amp;lt;span&amp;amp;gt;Wed Feb 12 07:37:13 2014&amp;amp;lt;/span&amp;amp;gt;.&amp;amp;lt;/p&amp;amp;gt;
&amp;lt;/code&amp;gt;&amp;lt;/pre&amp;gt;

&amp;lt;p&amp;gt;&amp;lt;/body&amp;gt;&amp;lt;br&amp;gt;
&amp;lt;/html&amp;gt;&amp;lt;/p&amp;gt;&amp;lt;/p&amp;gt;&lt;/STYLE&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 12 Feb 2014 14:48:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-I-use-the-REST-API/m-p/148006#M30108</guid>
      <dc:creator>sdorich</dc:creator>
      <dc:date>2014-02-12T14:48:59Z</dc:date>
    </item>
    <item>
      <title>Re: How do I use the REST API?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-I-use-the-REST-API/m-p/148007#M30109</link>
      <description>&lt;P&gt;Note that I'm a newbie to REST API calls so bare with me. Thanks!&lt;/P&gt;</description>
      <pubDate>Wed, 12 Feb 2014 14:50:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-I-use-the-REST-API/m-p/148007#M30109</guid>
      <dc:creator>sdorich</dc:creator>
      <dc:date>2014-02-12T14:50:16Z</dc:date>
    </item>
    <item>
      <title>Re: How do I use the REST API?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-I-use-the-REST-API/m-p/148008#M30110</link>
      <description>&lt;P&gt;You'll have to talk to Splunk's management port (default 8089), not the Splunkweb port (default 8000). It also speaks https.&lt;/P&gt;

&lt;P&gt;Also, the URL you tried "/servicesNS/admin/search" is incomplete. That just says "for the admin user in the search app context...". An example might be: &lt;A href="https://127.0.0.1:8089/servicesNS/admin/search/saved/searches"&gt;https://127.0.0.1:8089/servicesNS/admin/search/saved/searches&lt;/A&gt;" to list the saved searches visible to the admin user in the search app. Some good examples are found &lt;A href="http://docs.splunk.com/Documentation/Splunk/6.0.1/RESTAPI/RESTlist"&gt;here (Splunk docs)&lt;/A&gt; as well.&lt;/P&gt;</description>
      <pubDate>Wed, 12 Feb 2014 15:17:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-I-use-the-REST-API/m-p/148008#M30110</guid>
      <dc:creator>sowings</dc:creator>
      <dc:date>2014-02-12T15:17:11Z</dc:date>
    </item>
    <item>
      <title>Re: How do I use the REST API?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-I-use-the-REST-API/m-p/148009#M30111</link>
      <description>&lt;P&gt;You're using the wrong port. Port 8000 is Splunk's regular web interface. The REST API is available on port 8089 (over HTTPS).&lt;/P&gt;</description>
      <pubDate>Wed, 12 Feb 2014 15:17:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-I-use-the-REST-API/m-p/148009#M30111</guid>
      <dc:creator>Ayn</dc:creator>
      <dc:date>2014-02-12T15:17:24Z</dc:date>
    </item>
    <item>
      <title>Re: How do I use the REST API?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-I-use-the-REST-API/m-p/148010#M30112</link>
      <description>&lt;P&gt;@sowings - &lt;BR /&gt;
Thanks, that helps. One last question (remember I'm a newbie with the REST API).. I'm assuming that I don't need to set up a forwarder on the server I want to get REST API calls from since these calls use http methods. Am I correct or is a forwarder still needed for whatever reason?&lt;/P&gt;</description>
      <pubDate>Wed, 12 Feb 2014 16:25:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-I-use-the-REST-API/m-p/148010#M30112</guid>
      <dc:creator>sdorich</dc:creator>
      <dc:date>2014-02-12T16:25:13Z</dc:date>
    </item>
    <item>
      <title>Re: How do I use the REST API?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-I-use-the-REST-API/m-p/148011#M30113</link>
      <description>&lt;P&gt;The REST API is for talking to the management port of "a" Splunk instance. You can talk REST to a forwarder, but it won't have a lot to say. You don't need the forwarder to query the server (indexer).&lt;/P&gt;</description>
      <pubDate>Wed, 12 Feb 2014 18:05:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-I-use-the-REST-API/m-p/148011#M30113</guid>
      <dc:creator>sowings</dc:creator>
      <dc:date>2014-02-12T18:05:34Z</dc:date>
    </item>
  </channel>
</rss>

