<?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: Ingesting data from web query that returns JSON/XML response in plaintext in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Ingesting-data-from-web-query-that-returns-JSON-XML-response-in/m-p/442372#M94609</link>
    <description>&lt;P&gt;@Damien Dallimore yes, I did that and double checked the settings in the app, with the same error every time. &lt;/P&gt;

&lt;P&gt;I am also using this exact same URL+arguments with cURL [basic auth over https] and that is responding fine. &lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;Any methods on confirming if a given URL is actually an API which is REST compliant?&lt;/STRONG&gt;&lt;BR /&gt;
&lt;STRONG&gt;Also, how does the REST API Modular Input App behave if an URL is not an API URL?&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;The tool itself has very sketchy documentation and the company does not say much about its workings. But I will also try to get information about this. &lt;/P&gt;</description>
    <pubDate>Fri, 22 Jun 2018 04:34:07 GMT</pubDate>
    <dc:creator>anirbandasdeb</dc:creator>
    <dc:date>2018-06-22T04:34:07Z</dc:date>
    <item>
      <title>Ingesting data from web query that returns JSON/XML response in plaintext</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Ingesting-data-from-web-query-that-returns-JSON-XML-response-in/m-p/442366#M94603</link>
      <description>&lt;P&gt;Hello All, &lt;/P&gt;

&lt;P&gt;I am trying to ingest data from a cloud-based 3rd party tool that returns JSON/XML in response to a web query..&lt;BR /&gt;
Specific example as follows: &lt;BR /&gt;
1. Enter the following URL in browser: &lt;STRONG&gt;&lt;A href="https://toolURL/web/query.axd?type=whiteboard&amp;amp;format=json/etc/"&gt;https://toolURL/web/query.axd?type=whiteboard&amp;amp;format=json/etc/&lt;/A&gt;&lt;/STRONG&gt;&lt;BR /&gt;
2. Enter credentials.&lt;BR /&gt;
3. Get response in browser window in JSON/XML format. There is no prompt for a file download.. The response in just in the browser as plaintext. &lt;/P&gt;

&lt;P&gt;I want to ingest this data into Splunk Enterprise. &lt;BR /&gt;
Is there any way I can do this out of the box in Splunk?&lt;/P&gt;

&lt;P&gt;There is no way to install any kind of forwarder on the 3rd party tool server, nor can I ask them to include any thing in their tool that will allow HTTP Event Collection on my Splunk deployment. &lt;/P&gt;

&lt;P&gt;Only way I figured I can do this is either via a Scripted Input or Modular input. &lt;BR /&gt;
However, I have not used either of them earlier and don't know which one will work better. &lt;/P&gt;

&lt;P&gt;Can someone please guide in the right direction? &lt;BR /&gt;
Also, a proper tutorial for building a modular/scripted input would be good. &lt;/P&gt;

&lt;P&gt;or, if there is a app that does exactly this, that would be excellent. &lt;/P&gt;

&lt;P&gt;note #1: I do not have any kind of documentation about this 3rd party tool which can tell me if it has a REST API or not. &lt;/P&gt;

&lt;P&gt;Thanks in advance &amp;amp; regards..&lt;/P&gt;</description>
      <pubDate>Sat, 09 Jun 2018 11:41:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Ingesting-data-from-web-query-that-returns-JSON-XML-response-in/m-p/442366#M94603</guid>
      <dc:creator>anirbandasdeb</dc:creator>
      <dc:date>2018-06-09T11:41:26Z</dc:date>
    </item>
    <item>
      <title>Re: Ingesting data from web query that returns JSON/XML response in plaintext</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Ingesting-data-from-web-query-that-returns-JSON-XML-response-in/m-p/442367#M94604</link>
      <description>&lt;P&gt;@anirbandasdeb I think you should be trying out &lt;A href="https://splunkbase.splunk.com/app/1546/"&gt;REST API Modular Input&lt;/A&gt;.&lt;/P&gt;

&lt;P&gt;@Damien Dallimore &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 09 Jun 2018 16:59:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Ingesting-data-from-web-query-that-returns-JSON-XML-response-in/m-p/442367#M94604</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2018-06-09T16:59:56Z</dc:date>
    </item>
    <item>
      <title>Re: Ingesting data from web query that returns JSON/XML response in plaintext</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Ingesting-data-from-web-query-that-returns-JSON-XML-response-in/m-p/442368#M94605</link>
      <description>&lt;P&gt;Yes , that is exactly what you can use the REST API Modular Input for.&lt;/P&gt;</description>
      <pubDate>Sat, 09 Jun 2018 21:30:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Ingesting-data-from-web-query-that-returns-JSON-XML-response-in/m-p/442368#M94605</guid>
      <dc:creator>Damien_Dallimor</dc:creator>
      <dc:date>2018-06-09T21:30:07Z</dc:date>
    </item>
    <item>
      <title>Re: Ingesting data from web query that returns JSON/XML response in plaintext</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Ingesting-data-from-web-query-that-returns-JSON-XML-response-in/m-p/442369#M94606</link>
      <description>&lt;P&gt;@niketnilay&lt;/P&gt;

&lt;P&gt;Thank you I checked it out and it seems to fit my requirements. &lt;BR /&gt;
I will try it out and let you know. &lt;/P&gt;</description>
      <pubDate>Mon, 11 Jun 2018 06:38:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Ingesting-data-from-web-query-that-returns-JSON-XML-response-in/m-p/442369#M94606</guid>
      <dc:creator>anirbandasdeb</dc:creator>
      <dc:date>2018-06-11T06:38:26Z</dc:date>
    </item>
    <item>
      <title>Re: Ingesting data from web query that returns JSON/XML response in plaintext</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Ingesting-data-from-web-query-that-returns-JSON-XML-response-in/m-p/442370#M94607</link>
      <description>&lt;P&gt;@niketnilay @Damien Dallimore&lt;/P&gt;

&lt;P&gt;I got around to install the App on a trial Enterprise version, configured all that is needed, scheduled it. &lt;BR /&gt;
Its running correctly as per schedule, but with the following error, and no event in the indexes... &lt;/P&gt;

&lt;BLOCKQUOTE&gt;
&lt;P&gt;HTTPSConnectionPool(host='ToolHostName', port=443): Max retries exceeded with url: /web/query.axd?line=1&amp;amp;type=whiteboard&amp;amp;NegativeScrap=1&amp;amp;units=3&amp;amp;split=job&amp;amp;machines=E0CFAE3D-74EF-0579-8C90-E3D00F56AC70&amp;amp;format=json&amp;amp;start=20180528T060000.000 (Caused by : [Errno 11004] getaddrinfo failed)&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;

&lt;P&gt;I tried using cURL on the same URL with additional arguments and basic auth over HTTPS, and its giving the proper output. &lt;/P&gt;

&lt;P&gt;Now I am doubting that this URL itself might not be a API URL that the REST Input App needs.. &lt;/P&gt;

&lt;P&gt;What are your views? &lt;/P&gt;

&lt;P&gt;Regards,&lt;BR /&gt;
Anirban. &lt;/P&gt;</description>
      <pubDate>Thu, 21 Jun 2018 07:45:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Ingesting-data-from-web-query-that-returns-JSON-XML-response-in/m-p/442370#M94607</guid>
      <dc:creator>anirbandasdeb</dc:creator>
      <dc:date>2018-06-21T07:45:50Z</dc:date>
    </item>
    <item>
      <title>Re: Ingesting data from web query that returns JSON/XML response in plaintext</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Ingesting-data-from-web-query-that-returns-JSON-XML-response-in/m-p/442371#M94608</link>
      <description>&lt;P&gt;If you google "errno 11004 getaddrinfo failed" you will see that you have hostname resolution errors.&lt;/P&gt;</description>
      <pubDate>Thu, 21 Jun 2018 09:58:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Ingesting-data-from-web-query-that-returns-JSON-XML-response-in/m-p/442371#M94608</guid>
      <dc:creator>Damien_Dallimor</dc:creator>
      <dc:date>2018-06-21T09:58:09Z</dc:date>
    </item>
    <item>
      <title>Re: Ingesting data from web query that returns JSON/XML response in plaintext</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Ingesting-data-from-web-query-that-returns-JSON-XML-response-in/m-p/442372#M94609</link>
      <description>&lt;P&gt;@Damien Dallimore yes, I did that and double checked the settings in the app, with the same error every time. &lt;/P&gt;

&lt;P&gt;I am also using this exact same URL+arguments with cURL [basic auth over https] and that is responding fine. &lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;Any methods on confirming if a given URL is actually an API which is REST compliant?&lt;/STRONG&gt;&lt;BR /&gt;
&lt;STRONG&gt;Also, how does the REST API Modular Input App behave if an URL is not an API URL?&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;The tool itself has very sketchy documentation and the company does not say much about its workings. But I will also try to get information about this. &lt;/P&gt;</description>
      <pubDate>Fri, 22 Jun 2018 04:34:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Ingesting-data-from-web-query-that-returns-JSON-XML-response-in/m-p/442372#M94609</guid>
      <dc:creator>anirbandasdeb</dc:creator>
      <dc:date>2018-06-22T04:34:07Z</dc:date>
    </item>
    <item>
      <title>Re: Ingesting data from web query that returns JSON/XML response in plaintext</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Ingesting-data-from-web-query-that-returns-JSON-XML-response-in/m-p/442373#M94610</link>
      <description>&lt;P&gt;errno 11004 getaddrinfo failed   : you have a DNS error. &lt;/P&gt;

&lt;P&gt;This is at the operating system level.&lt;/P&gt;

&lt;P&gt;The hostname can not be resolved.&lt;/P&gt;

&lt;P&gt;perhaps you are misconfiguring your rest stanza.&lt;/P&gt;

&lt;P&gt;please post your full rest stanza for the community to assist in troubleshooting.&lt;/P&gt;</description>
      <pubDate>Fri, 22 Jun 2018 04:43:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Ingesting-data-from-web-query-that-returns-JSON-XML-response-in/m-p/442373#M94610</guid>
      <dc:creator>Damien_Dallimor</dc:creator>
      <dc:date>2018-06-22T04:43:00Z</dc:date>
    </item>
    <item>
      <title>Re: Ingesting data from web query that returns JSON/XML response in plaintext</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Ingesting-data-from-web-query-that-returns-JSON-XML-response-in/m-p/442374#M94611</link>
      <description>&lt;P&gt;what exactly is the rest stanza?&lt;/P&gt;</description>
      <pubDate>Fri, 22 Jun 2018 05:29:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Ingesting-data-from-web-query-that-returns-JSON-XML-response-in/m-p/442374#M94611</guid>
      <dc:creator>anirbandasdeb</dc:creator>
      <dc:date>2018-06-22T05:29:50Z</dc:date>
    </item>
    <item>
      <title>Re: Ingesting data from web query that returns JSON/XML response in plaintext</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Ingesting-data-from-web-query-that-returns-JSON-XML-response-in/m-p/442375#M94612</link>
      <description>&lt;P&gt;@anirbandasdeb As an alternate can you refer to the following Blog by Stephen Luedtke &lt;A href="https://www.splunk.com/blog/2018/06/13/dashboard-digest-series-episode-7-iron-splunk.html"&gt;Dashboard Digest Series Episode 7&lt;/A&gt; which talks about using &lt;A href="https://splunkbase.splunk.com/app/2962"&gt;Splunk Add On Builder&lt;/A&gt; to configure REST API input to Splunk as an input&lt;/P&gt;

&lt;P&gt;Following is the Splunk documentation for Add On Builder App setup and configuration: &lt;A href="https://docs.splunk.com/Documentation/AddonBuilder/latest/UserGuide/Overview"&gt;https://docs.splunk.com/Documentation/AddonBuilder/latest/UserGuide/Overview&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 22 Jun 2018 05:35:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Ingesting-data-from-web-query-that-returns-JSON-XML-response-in/m-p/442375#M94612</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2018-06-22T05:35:19Z</dc:date>
    </item>
    <item>
      <title>Re: Ingesting data from web query that returns JSON/XML response in plaintext</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Ingesting-data-from-web-query-that-returns-JSON-XML-response-in/m-p/442376#M94613</link>
      <description>&lt;P&gt;data on cloud could be a mess sometime. as the data is increasing, so is the burden on servers.&lt;BR /&gt;
if you are also facing any data related recovery problem, then you should visit &lt;A href="http://www.uaedatarecovery.com/"&gt;UAE Data Recovery&lt;/A&gt; &lt;/P&gt;</description>
      <pubDate>Fri, 22 Jun 2018 05:44:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Ingesting-data-from-web-query-that-returns-JSON-XML-response-in/m-p/442376#M94613</guid>
      <dc:creator>rossgeller99</dc:creator>
      <dc:date>2018-06-22T05:44:02Z</dc:date>
    </item>
    <item>
      <title>Re: Ingesting data from web query that returns JSON/XML response in plaintext</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Ingesting-data-from-web-query-that-returns-JSON-XML-response-in/m-p/442377#M94614</link>
      <description>&lt;P&gt;UAE Data Recovery&lt;A href="https://www.uaedatarecovery.com/"&gt;link text&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 22 Jun 2018 05:45:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Ingesting-data-from-web-query-that-returns-JSON-XML-response-in/m-p/442377#M94614</guid>
      <dc:creator>rossgeller99</dc:creator>
      <dc:date>2018-06-22T05:45:43Z</dc:date>
    </item>
    <item>
      <title>Re: Ingesting data from web query that returns JSON/XML response in plaintext</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Ingesting-data-from-web-query-that-returns-JSON-XML-response-in/m-p/442378#M94615</link>
      <description>&lt;P&gt;when you setup your rest data input , it gets saved to an inputs.conf file in a [rest] stanza. Search for it under SPLUNK_HOME/etc/*&lt;/P&gt;

&lt;P&gt;what does it look like ? &lt;/P&gt;

&lt;P&gt;if we have some information to look at , we may be able to help you resolve your operating systems dns lookup failures.&lt;/P&gt;

&lt;P&gt;such as , perhaps you entered your hostname in your URL incorrectly ?&lt;/P&gt;</description>
      <pubDate>Fri, 22 Jun 2018 05:50:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Ingesting-data-from-web-query-that-returns-JSON-XML-response-in/m-p/442378#M94615</guid>
      <dc:creator>Damien_Dallimor</dc:creator>
      <dc:date>2018-06-22T05:50:09Z</dc:date>
    </item>
    <item>
      <title>Re: Ingesting data from web query that returns JSON/XML response in plaintext</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Ingesting-data-from-web-query-that-returns-JSON-XML-response-in/m-p/442379#M94616</link>
      <description>&lt;P&gt;okay. let me get a hold of that. &lt;BR /&gt;
I will get back to you on this @Damien Dallimore&lt;/P&gt;</description>
      <pubDate>Fri, 22 Jun 2018 05:55:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Ingesting-data-from-web-query-that-returns-JSON-XML-response-in/m-p/442379#M94616</guid>
      <dc:creator>anirbandasdeb</dc:creator>
      <dc:date>2018-06-22T05:55:40Z</dc:date>
    </item>
    <item>
      <title>Re: Ingesting data from web query that returns JSON/XML response in plaintext</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Ingesting-data-from-web-query-that-returns-JSON-XML-response-in/m-p/442380#M94617</link>
      <description>&lt;P&gt;@niketnilay this is some truly good stuff. I will study them. &lt;/P&gt;

&lt;P&gt;Thank you! &lt;/P&gt;</description>
      <pubDate>Fri, 22 Jun 2018 08:55:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Ingesting-data-from-web-query-that-returns-JSON-XML-response-in/m-p/442380#M94617</guid>
      <dc:creator>anirbandasdeb</dc:creator>
      <dc:date>2018-06-22T08:55:42Z</dc:date>
    </item>
    <item>
      <title>Re: Ingesting data from web query that returns JSON/XML response in plaintext</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Ingesting-data-from-web-query-that-returns-JSON-XML-response-in/m-p/442381#M94618</link>
      <description>&lt;P&gt;So we got around this particular problem using Scripted Input, with a python script running on a CRON schedule, executing the web query and ingesting the JSON response. &lt;/P&gt;

&lt;P&gt;This URL was not REST compliant, nor did the 3rd party tool have any such endpoints. &lt;/P&gt;

&lt;P&gt;Nevertheless, @niketnilay &amp;amp; @Damien Dallimore thank you for your help. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 24 Jul 2018 06:01:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Ingesting-data-from-web-query-that-returns-JSON-XML-response-in/m-p/442381#M94618</guid>
      <dc:creator>anirbandasdeb</dc:creator>
      <dc:date>2018-07-24T06:01:09Z</dc:date>
    </item>
  </channel>
</rss>

