<?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 can I get a list of data inputs using the REST API? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-can-I-get-a-list-of-data-inputs-using-the-REST-API/m-p/389016#M69638</link>
    <description>&lt;P&gt;What do you mean by DB Connection? Are you using DB Connect app?&lt;/P&gt;</description>
    <pubDate>Wed, 22 May 2019 17:39:11 GMT</pubDate>
    <dc:creator>niketn</dc:creator>
    <dc:date>2019-05-22T17:39:11Z</dc:date>
    <item>
      <title>How can I get a list of data inputs using the REST API?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-can-I-get-a-list-of-data-inputs-using-the-REST-API/m-p/389012#M69634</link>
      <description>&lt;P&gt;I'd like to get a list of the data inputs and - ideally - the actual search behind each input.&lt;/P&gt;

&lt;P&gt;Is it possible to do this using the REST command in the Splunk GUI?&lt;/P&gt;</description>
      <pubDate>Wed, 22 May 2019 14:27:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-can-I-get-a-list-of-data-inputs-using-the-REST-API/m-p/389012#M69634</guid>
      <dc:creator>bbknowles</dc:creator>
      <dc:date>2019-05-22T14:27:39Z</dc:date>
    </item>
    <item>
      <title>Re: How can I get a list of data inputs using the REST API?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-can-I-get-a-list-of-data-inputs-using-the-REST-API/m-p/389013#M69635</link>
      <description>&lt;P&gt;Could you be more specific about what you mean by data inputs.  There are many ways to get data into Splunk, and you won't be able to get information for certain types of data inputs by using REST.&lt;/P&gt;

&lt;P&gt;You'll also need to clarify what you mean by "the search behind each input".  There is no "search" associated with a monitor type input, it just watches files for changes.  There is a search behind db connect inputs, but it's an SQL query, not a search.&lt;/P&gt;

&lt;P&gt;In general, I would say you could get some information using REST, but not all information about data inputs.&lt;/P&gt;

&lt;P&gt;Is there a specific use case you're trying to address?&lt;/P&gt;</description>
      <pubDate>Wed, 22 May 2019 14:51:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-can-I-get-a-list-of-data-inputs-using-the-REST-API/m-p/389013#M69635</guid>
      <dc:creator>jnudell_2</dc:creator>
      <dc:date>2019-05-22T14:51:37Z</dc:date>
    </item>
    <item>
      <title>Re: How can I get a list of data inputs using the REST API?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-can-I-get-a-list-of-data-inputs-using-the-REST-API/m-p/389014#M69636</link>
      <description>&lt;P&gt;@bbknowles  try the following:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| rest /services/data/inputs/all/
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;You can refer to &lt;A href="https://docs.splunk.com/Documentation/Splunk/latest/RESTREF/RESTinput#data.2Finputs.2Fall"&gt;Splunk REST API Document for Data Inputs&lt;/A&gt;&lt;BR /&gt;
Usually once you open any view in Splunk UI, based on URL in the browser you should be able to figure out which REST API (or endpoint documentation you should refer to).&lt;/P&gt;</description>
      <pubDate>Wed, 22 May 2019 15:13:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-can-I-get-a-list-of-data-inputs-using-the-REST-API/m-p/389014#M69636</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2019-05-22T15:13:50Z</dc:date>
    </item>
    <item>
      <title>Re: How can I get a list of data inputs using the REST API?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-can-I-get-a-list-of-data-inputs-using-the-REST-API/m-p/389015#M69637</link>
      <description>&lt;P&gt;Sorry.  I guess I didn't communicate that well.  I actually want a list of the db connections and the searches or queries behind them.&lt;/P&gt;</description>
      <pubDate>Wed, 22 May 2019 15:32:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-can-I-get-a-list-of-data-inputs-using-the-REST-API/m-p/389015#M69637</guid>
      <dc:creator>bbknowles</dc:creator>
      <dc:date>2019-05-22T15:32:53Z</dc:date>
    </item>
    <item>
      <title>Re: How can I get a list of data inputs using the REST API?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-can-I-get-a-list-of-data-inputs-using-the-REST-API/m-p/389016#M69638</link>
      <description>&lt;P&gt;What do you mean by DB Connection? Are you using DB Connect app?&lt;/P&gt;</description>
      <pubDate>Wed, 22 May 2019 17:39:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-can-I-get-a-list-of-data-inputs-using-the-REST-API/m-p/389016#M69638</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2019-05-22T17:39:11Z</dc:date>
    </item>
    <item>
      <title>Re: How can I get a list of data inputs using the REST API?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-can-I-get-a-list-of-data-inputs-using-the-REST-API/m-p/389017#M69639</link>
      <description>&lt;P&gt;Yes.  But it's okay.  I figured out a way, using this search:&lt;/P&gt;

&lt;P&gt;index=_internal host=PHSWEB2257  sourcetype=dbx_server task  | dedup task &lt;BR /&gt;
| table task query&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 00:42:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-can-I-get-a-list-of-data-inputs-using-the-REST-API/m-p/389017#M69639</guid>
      <dc:creator>bbknowles</dc:creator>
      <dc:date>2020-09-30T00:42:06Z</dc:date>
    </item>
  </channel>
</rss>

