<?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 retrieve JSON formatted data from a web server with authentication? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-to-retrieve-JSON-formatted-data-from-a-web-server-with/m-p/179863#M36080</link>
    <description>&lt;P&gt;Thank you. I will give it a try!!!&lt;/P&gt;</description>
    <pubDate>Wed, 05 Nov 2014 09:48:06 GMT</pubDate>
    <dc:creator>afabijan</dc:creator>
    <dc:date>2014-11-05T09:48:06Z</dc:date>
    <item>
      <title>How to retrieve JSON formatted data from a web server with authentication?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-retrieve-JSON-formatted-data-from-a-web-server-with/m-p/179861#M36078</link>
      <description>&lt;P&gt;Hi there,&lt;BR /&gt;
i have a Restful API that returns data in JSON format. I would like to retrieve this data into Splunk.&lt;BR /&gt;
The problem is that when I open the URL in a browser, i need to first Log IN and then i see the data in JSON.&lt;/P&gt;

&lt;P&gt;Does anyone have an idea how to retrieve this into Splunk? Is there some way to incorporate HTTP authentication? &lt;BR /&gt;
I used the following resources up to now:&lt;BR /&gt;
&lt;A href="https://apps.splunk.com/app/1311/"&gt;https://apps.splunk.com/app/1311/&lt;/A&gt;&lt;BR /&gt;
&lt;A href="http://answers.splunk.com/answers/60608/injest-json-document-returned-from-an-monitoring-endpoint.html"&gt;http://answers.splunk.com/answers/60608/injest-json-document-returned-from-an-monitoring-endpoint.html&lt;/A&gt;&lt;BR /&gt;
&lt;A href="http://answers.splunk.com/answers/118431/whats-the-best-way-to-import-custom-json-data-from-a-web-api.html"&gt;http://answers.splunk.com/answers/118431/whats-the-best-way-to-import-custom-json-data-from-a-web-api.html&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Kind regards, A&lt;/P&gt;</description>
      <pubDate>Wed, 05 Nov 2014 09:39:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-retrieve-JSON-formatted-data-from-a-web-server-with/m-p/179861#M36078</guid>
      <dc:creator>afabijan</dc:creator>
      <dc:date>2014-11-05T09:39:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to retrieve JSON formatted data from a web server with authentication?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-retrieve-JSON-formatted-data-from-a-web-server-with/m-p/179862#M36079</link>
      <description>&lt;P&gt;The &lt;A href="https://apps.splunk.com/app/1546/"&gt;REST API Modular Input&lt;/A&gt; supports numerous HTTP authentication mechanisms.&lt;/P&gt;</description>
      <pubDate>Wed, 05 Nov 2014 09:45:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-retrieve-JSON-formatted-data-from-a-web-server-with/m-p/179862#M36079</guid>
      <dc:creator>Damien_Dallimor</dc:creator>
      <dc:date>2014-11-05T09:45:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to retrieve JSON formatted data from a web server with authentication?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-retrieve-JSON-formatted-data-from-a-web-server-with/m-p/179863#M36080</link>
      <description>&lt;P&gt;Thank you. I will give it a try!!!&lt;/P&gt;</description>
      <pubDate>Wed, 05 Nov 2014 09:48:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-retrieve-JSON-formatted-data-from-a-web-server-with/m-p/179863#M36080</guid>
      <dc:creator>afabijan</dc:creator>
      <dc:date>2014-11-05T09:48:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to retrieve JSON formatted data from a web server with authentication?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-retrieve-JSON-formatted-data-from-a-web-server-with/m-p/179864#M36081</link>
      <description>&lt;P&gt;EDIT: Seems a port issue, wait with reading this until i open a port 80 between splunk and the web server  &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; &lt;/P&gt;

&lt;P&gt;Could you give me a bit help on using this - the URl that i get the JSON back is (in the browser) the following:&lt;BR /&gt;
&lt;A href="http://10.X.X.X/arapi/X.X.X.X/HPD:Help%20Desk/'1000000161'=%22INC000000010348%22?port=50000"&gt;http://10.X.X.X/arapi/X.X.X.X/HPD:Help%20Desk/'1000000161'=%22INC000000010348%22?port=50000&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;How do i correctly enter this in the module that you developed? I see in the logs that if i enter this link, i get an exception:&lt;/P&gt;

&lt;P&gt;HTTPConnectionPool(host='10.X.X.X', port=80): Max retries exceeded with url: /arapi/X.X.X.X-03/HPD:Help%20Desk/'1000000161'=%22INC000000010348%22?port=50000 (Caused by : [Errno 10060] A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond)&lt;/P&gt;</description>
      <pubDate>Wed, 05 Nov 2014 14:18:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-retrieve-JSON-formatted-data-from-a-web-server-with/m-p/179864#M36081</guid>
      <dc:creator>afabijan</dc:creator>
      <dc:date>2014-11-05T14:18:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to retrieve JSON formatted data from a web server with authentication?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-retrieve-JSON-formatted-data-from-a-web-server-with/m-p/179865#M36082</link>
      <description>&lt;P&gt;You do realise that's an encoded URL ?&lt;/P&gt;

&lt;P&gt;It would help if you could be more accurate with the information in your question..&lt;/P&gt;

&lt;P&gt;What is the URL of your REST Endpoint ?&lt;/P&gt;

&lt;P&gt;What is the HTTP method for this endpoint?&lt;/P&gt;

&lt;P&gt;What are the expected URL arguments or POST parameters ?&lt;/P&gt;

&lt;P&gt;What is the HTTP authentication mechanism ?&lt;/P&gt;

&lt;P&gt;How are the authentication credentials expected to be encoded in the HTTP request ?&lt;/P&gt;</description>
      <pubDate>Wed, 05 Nov 2014 21:35:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-retrieve-JSON-formatted-data-from-a-web-server-with/m-p/179865#M36082</guid>
      <dc:creator>Damien_Dallimor</dc:creator>
      <dc:date>2014-11-05T21:35:33Z</dc:date>
    </item>
  </channel>
</rss>

