<?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 Access Splunk through ColdFusion in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Access-Splunk-through-ColdFusion/m-p/173425#M34889</link>
    <description>&lt;P&gt;Is it possible, and if so how, to dispatch searches in Splunk and display the results using Coldfusion. I have been looking at REST and cURL but can't quite wrap my head around getting either one to work with ColdFusion. I do not want to see ColdFusion logs I want to see search results displayed in ColdFusion pages.&lt;/P&gt;

&lt;P&gt;if I do this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;html&amp;gt;
&amp;lt;head&amp;gt;
&amp;lt;title&amp;gt;Splunk Test&amp;lt;/title&amp;gt;
&amp;lt;/head&amp;gt;
&amp;lt;body&amp;gt;

&amp;lt;cfset tmp = {} /&amp;gt;
&amp;lt;cfhttp url='https://localhost:8089/'  username="admin"  password="changeme" result="r" method="post" &amp;gt;
&amp;lt;cfhttpparam type="header" name="content-type" value="application/json" /&amp;gt;

&amp;lt;cfhttpparam type="body" value="#serializeJson(tmp)#" /&amp;gt;
&amp;lt;/cfhttp&amp;gt;

&amp;lt;cfdump var="#r#" /&amp;gt;

&amp;lt;/body&amp;gt;
&amp;lt;/html&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I get the following response&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;struct

Charset [empty string]  
ErrorDetail I/O Exception: sun.security.validator.ValidatorException: PKIX path building failed: java.security.cert.CertPathBuilderException: Could not build a validated path.  
Filecontent Connection Failure  
Header [empty string]  
Mimetype Unable to determine MIME type of file.  
Responseheader 

struct [empty]

Statuscode Connection Failure. Status code unavailable.  
Text YES 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Is what I am trying even possible? &lt;/P&gt;</description>
    <pubDate>Tue, 10 Mar 2015 14:42:01 GMT</pubDate>
    <dc:creator>kmattern</dc:creator>
    <dc:date>2015-03-10T14:42:01Z</dc:date>
    <item>
      <title>Access Splunk through ColdFusion</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Access-Splunk-through-ColdFusion/m-p/173425#M34889</link>
      <description>&lt;P&gt;Is it possible, and if so how, to dispatch searches in Splunk and display the results using Coldfusion. I have been looking at REST and cURL but can't quite wrap my head around getting either one to work with ColdFusion. I do not want to see ColdFusion logs I want to see search results displayed in ColdFusion pages.&lt;/P&gt;

&lt;P&gt;if I do this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;html&amp;gt;
&amp;lt;head&amp;gt;
&amp;lt;title&amp;gt;Splunk Test&amp;lt;/title&amp;gt;
&amp;lt;/head&amp;gt;
&amp;lt;body&amp;gt;

&amp;lt;cfset tmp = {} /&amp;gt;
&amp;lt;cfhttp url='https://localhost:8089/'  username="admin"  password="changeme" result="r" method="post" &amp;gt;
&amp;lt;cfhttpparam type="header" name="content-type" value="application/json" /&amp;gt;

&amp;lt;cfhttpparam type="body" value="#serializeJson(tmp)#" /&amp;gt;
&amp;lt;/cfhttp&amp;gt;

&amp;lt;cfdump var="#r#" /&amp;gt;

&amp;lt;/body&amp;gt;
&amp;lt;/html&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I get the following response&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;struct

Charset [empty string]  
ErrorDetail I/O Exception: sun.security.validator.ValidatorException: PKIX path building failed: java.security.cert.CertPathBuilderException: Could not build a validated path.  
Filecontent Connection Failure  
Header [empty string]  
Mimetype Unable to determine MIME type of file.  
Responseheader 

struct [empty]

Statuscode Connection Failure. Status code unavailable.  
Text YES 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Is what I am trying even possible? &lt;/P&gt;</description>
      <pubDate>Tue, 10 Mar 2015 14:42:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Access-Splunk-through-ColdFusion/m-p/173425#M34889</guid>
      <dc:creator>kmattern</dc:creator>
      <dc:date>2015-03-10T14:42:01Z</dc:date>
    </item>
    <item>
      <title>Re: Access Splunk through ColdFusion</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Access-Splunk-through-ColdFusion/m-p/173426#M34890</link>
      <description>&lt;P&gt;Yes, what you are doing is possible. The error you see is from Coldfusion trying to validate the Splunk server certificate. Is it self-signed? then you need to turn the https validation off. Check out &lt;A href="http://dev.splunk.com/sdks"&gt;http://dev.splunk.com/sdks&lt;/A&gt; and see if one of those SDKs would help. &lt;/P&gt;</description>
      <pubDate>Thu, 01 Jun 2017 15:00:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Access-Splunk-through-ColdFusion/m-p/173426#M34890</guid>
      <dc:creator>alacercogitatus</dc:creator>
      <dc:date>2017-06-01T15:00:52Z</dc:date>
    </item>
  </channel>
</rss>

