i have a Restful API that returns data in JSON format. I would like to retrieve this data into Splunk.
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.
Does anyone have an idea how to retrieve this into Splunk? Is there some way to incorporate HTTP authentication?
I used the following resources up to now:
Kind regards, A
EDIT: Seems a port issue, wait with reading this until i open a port 80 between splunk and the web server 🙂
Could you give me a bit help on using this - the URl that i get the JSON back is (in the browser) the following:
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:
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)
You do realise that's an encoded URL ?
It would help if you could be more accurate with the information in your question..
What is the URL of your REST Endpoint ?
What is the HTTP method for this endpoint?
What are the expected URL arguments or POST parameters ?
What is the HTTP authentication mechanism ?
How are the authentication credentials expected to be encoded in the HTTP request ?