<?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 How to enable REST endpoints so that users can use other tools to grab data from Splunk? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-to-enable-REST-endpoints-so-that-users-can-use-other-tools/m-p/308846#M58113</link>
    <description>&lt;P&gt;How to enable REST endpoints so that users can use other tools to grab data from Splunk? Port 8089 is already opened. But when i paste the search head URL along with port number, all i could see HTML data but not the JSON data from Splunk. &lt;/P&gt;</description>
    <pubDate>Tue, 23 May 2017 17:11:24 GMT</pubDate>
    <dc:creator>kteng2024</dc:creator>
    <dc:date>2017-05-23T17:11:24Z</dc:date>
    <item>
      <title>How to enable REST endpoints so that users can use other tools to grab data from Splunk?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-enable-REST-endpoints-so-that-users-can-use-other-tools/m-p/308846#M58113</link>
      <description>&lt;P&gt;How to enable REST endpoints so that users can use other tools to grab data from Splunk? Port 8089 is already opened. But when i paste the search head URL along with port number, all i could see HTML data but not the JSON data from Splunk. &lt;/P&gt;</description>
      <pubDate>Tue, 23 May 2017 17:11:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-enable-REST-endpoints-so-that-users-can-use-other-tools/m-p/308846#M58113</guid>
      <dc:creator>kteng2024</dc:creator>
      <dc:date>2017-05-23T17:11:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to enable REST endpoints so that users can use other tools to grab data from Splunk?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-enable-REST-endpoints-so-that-users-can-use-other-tools/m-p/308847#M58114</link>
      <description>&lt;P&gt;try to add the query parameter with output_mode=json.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&lt;A href="https://&amp;lt;yourhost&amp;gt;:&amp;lt;mgnt_port&amp;gt;/.../../..?output_mode=json" target="test_blank"&gt;https://&amp;lt;yourhost&amp;gt;:&amp;lt;mgnt_port&amp;gt;/.../../..?output_mode=json&lt;/A&gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Read this, &lt;A href="http://docs.splunk.com/Documentation/Splunk/6.6.0/RESTTUT/RESTsearches"&gt;http://docs.splunk.com/Documentation/Splunk/6.6.0/RESTTUT/RESTsearches&lt;/A&gt; &lt;/P&gt;

&lt;P&gt;You can return search results in JSON, CSV or XML by setting the output_mode parameter. By default, results are returned in XML format.&lt;/P&gt;

&lt;P&gt;For example, to retrieve search results in JSON format, make the following call.&lt;/P&gt;

&lt;P&gt;Note: The curl listing includes --get because you are passing a parameter to a GET operation.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;curl -u admin:changeme \
     -k &lt;A href="https://localhost:8089/services/search/jobs/1258421375.19/results/" target="test_blank"&gt;https://localhost:8089/services/search/jobs/1258421375.19/results/&lt;/A&gt; \
     --get -d output_mode=json
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 23 May 2017 17:38:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-enable-REST-endpoints-so-that-users-can-use-other-tools/m-p/308847#M58114</guid>
      <dc:creator>vasanthmss</dc:creator>
      <dc:date>2017-05-23T17:38:50Z</dc:date>
    </item>
  </channel>
</rss>

