<?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 learn splunk rest interface in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/learn-splunk-rest-interface/m-p/229461#M44640</link>
    <description>&lt;P&gt;I have tried multiple time to get my hands around this API.    I have read through the tutorials multiple times  and yes what the examples say  works.  However I'm trying to learn how to ask "I need this item from the REST Interface"  How do I figure out how to do that via the REST  Interface? &lt;/P&gt;

&lt;P&gt;Just back from .conf 2016 and had hoped to find help there but without success for this.&lt;/P&gt;

&lt;P&gt;If I ask someone how to get X from REST - they say use this command to pull X.&lt;BR /&gt;
When I ask how they figured it out they say I got the command from someone else because the rest API is so cryptic.&lt;BR /&gt;&lt;BR /&gt;
A good doc to teach rather than  offer  2-3 examples would be much appreciated.  If it exists please point me at it!&lt;/P&gt;</description>
    <pubDate>Tue, 04 Oct 2016 16:48:09 GMT</pubDate>
    <dc:creator>cevyn</dc:creator>
    <dc:date>2016-10-04T16:48:09Z</dc:date>
    <item>
      <title>learn splunk rest interface</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/learn-splunk-rest-interface/m-p/229461#M44640</link>
      <description>&lt;P&gt;I have tried multiple time to get my hands around this API.    I have read through the tutorials multiple times  and yes what the examples say  works.  However I'm trying to learn how to ask "I need this item from the REST Interface"  How do I figure out how to do that via the REST  Interface? &lt;/P&gt;

&lt;P&gt;Just back from .conf 2016 and had hoped to find help there but without success for this.&lt;/P&gt;

&lt;P&gt;If I ask someone how to get X from REST - they say use this command to pull X.&lt;BR /&gt;
When I ask how they figured it out they say I got the command from someone else because the rest API is so cryptic.&lt;BR /&gt;&lt;BR /&gt;
A good doc to teach rather than  offer  2-3 examples would be much appreciated.  If it exists please point me at it!&lt;/P&gt;</description>
      <pubDate>Tue, 04 Oct 2016 16:48:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/learn-splunk-rest-interface/m-p/229461#M44640</guid>
      <dc:creator>cevyn</dc:creator>
      <dc:date>2016-10-04T16:48:09Z</dc:date>
    </item>
    <item>
      <title>Re: learn splunk rest interface</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/learn-splunk-rest-interface/m-p/229462#M44641</link>
      <description>&lt;P&gt;Hi @cevyn,&lt;BR /&gt;
I'd like to help with some of your questions. To start, are you familiar with using other REST APIs for create/read/update/delete type operations? Have you used a client or cURL before? Our docs don't cover this kind of general information, but if you can provide more details about your situation, I can suggest some resources.&lt;/P&gt;</description>
      <pubDate>Tue, 04 Oct 2016 17:41:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/learn-splunk-rest-interface/m-p/229462#M44641</guid>
      <dc:creator>frobinson_splun</dc:creator>
      <dc:date>2016-10-04T17:41:35Z</dc:date>
    </item>
    <item>
      <title>Re: learn splunk rest interface</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/learn-splunk-rest-interface/m-p/229463#M44642</link>
      <description>&lt;P&gt;So for example try working in reverse order.  Through conversations with peers I found I could add this to a dashboard to get what indexers had listening turned off:&lt;BR /&gt;
| rest /services/configs/conf-inputs | search title="&lt;EM&gt;tcp&lt;/EM&gt;" AND disabled=1 | stats  count by title,splunk_server | eventstats count&lt;/P&gt;

&lt;P&gt;SO I'm not worried about access via curl.  That is not my question.&lt;/P&gt;

&lt;P&gt;I would love to see a document that walks me through from the existing doc how I might research to find that tidbit of information.       I'm giving one  example but what I'm seeking is learning  method rather than a 100 tribal knowledge tidbits.   Teach me the mathematical proof  rather than 100 examples of the calculation of area of a triangle, if I can use that weak metaphor.&lt;/P&gt;</description>
      <pubDate>Tue, 04 Oct 2016 18:00:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/learn-splunk-rest-interface/m-p/229463#M44642</guid>
      <dc:creator>cevyn</dc:creator>
      <dc:date>2016-10-04T18:00:46Z</dc:date>
    </item>
    <item>
      <title>Re: learn splunk rest interface</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/learn-splunk-rest-interface/m-p/229464#M44643</link>
      <description>&lt;P&gt;Hi again @cevyn,&lt;BR /&gt;
Posting this as an answer now that I have more details on what you need. I would start by checking out the following resources in our docs.&lt;/P&gt;

&lt;P&gt;URI quick reference: lists available endpoints &lt;BR /&gt;
&lt;A href="http://docs.splunk.com/Documentation/Splunk/6.5.0/RESTREF/RESTlist"&gt;http://docs.splunk.com/Documentation/Splunk/6.5.0/RESTREF/RESTlist&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Resource group listing here gives you a high-level sense of how the endpoints are organized into groups for managing or accessing different things:&lt;BR /&gt;
&lt;A href="http://docs.splunk.com/Documentation/Splunk/6.5.0/RESTREF/RESTprolog"&gt;http://docs.splunk.com/Documentation/Splunk/6.5.0/RESTREF/RESTprolog&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;And from there, you could explore the different endpoint resource group topics to review what endpoints are available in each and what operations you can do with each endpoint. As a note, endpoints support one or more of these operations: GET/POST (for create and update)/DELETE. &lt;BR /&gt;
For example, here's the latest version of our configuration resource group topic:&lt;BR /&gt;
&lt;A href="http://docs.splunk.com/Documentation/Splunk/6.5.0/RESTREF/RESTconf"&gt;http://docs.splunk.com/Documentation/Splunk/6.5.0/RESTREF/RESTconf&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Each endpoint has a brief description of its purpose and the resources it represents, and then you can review parameter and returned value details for each operation. Every endpoint also includes an example request and response for each operation that it supports.&lt;/P&gt;

&lt;P&gt;I would recommend exploring these topics to get more familiar with the Splunk REST API. It might take some time to get used to it, but you should be able to find the information you need. &lt;/P&gt;

&lt;P&gt;The other thing I would recommend is reviewing the configuration spec files in our Admin manual. Configuration files represent many system resources and settings. &lt;/P&gt;

&lt;P&gt;The REST API and configuration files are closely related. For example, the  REST command you mention above involves editing inputs.conf. In order to use the REST API to edit this file, you would also need to know what you can configure in it. Review the spec file to learn more.&lt;/P&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/6.5.0/Admin/Inputsconf"&gt;http://docs.splunk.com/Documentation/Splunk/6.5.0/Admin/Inputsconf&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Then, you could use the /configs/conf-{file} or /conf-{file}/{stanza} endpoints to make updates to inputs.conf.&lt;/P&gt;

&lt;P&gt;Hope this helps!&lt;/P&gt;</description>
      <pubDate>Tue, 04 Oct 2016 18:14:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/learn-splunk-rest-interface/m-p/229464#M44643</guid>
      <dc:creator>frobinson_splun</dc:creator>
      <dc:date>2016-10-04T18:14:06Z</dc:date>
    </item>
  </channel>
</rss>

