<?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: Splunk HEC post call not working and getting exception: &amp;quot;PKIX path building failed&amp;quot; in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Splunk-HEC-post-call-not-working-and-getting-exception-quot-PKIX/m-p/559671#M92555</link>
    <description>&lt;P&gt;Also running into this.&amp;nbsp; How do I go about debugging this.&lt;/P&gt;</description>
    <pubDate>Thu, 15 Jul 2021 18:47:53 GMT</pubDate>
    <dc:creator>asmxyz</dc:creator>
    <dc:date>2021-07-15T18:47:53Z</dc:date>
    <item>
      <title>Splunk HEC post call not working and getting exception: "PKIX path building failed"</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Splunk-HEC-post-call-not-working-and-getting-exception-quot-PKIX/m-p/460103#M79431</link>
      <description>&lt;P&gt;I am getting below exception for send event through a java rest post call&lt;/P&gt;

&lt;P&gt;Exception :&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;      org.springframework.web.client.ResourceAccessException: I/O error on POST request for “https://input-prd-p- 
     f4txzc7qgv77.cloud.splunk.com:8088/services/collector“: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target; nested exception is javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Curl command :&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;curl -X POST \
   &lt;A href="https://input-prd-p-f4txzc7qgv77.cloud.splunk.com:8088/services/collector" target="test_blank"&gt;https://input-prd-p-f4txzc7qgv77.cloud.splunk.com:8088/services/collector&lt;/A&gt; \
   -H 'Authorization:Splunk 07944f24-c69e-42fc-af3c-14035cddb034' \
   -d '{"event": "Hello, world!", "sourcetype": "main"}'```
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;But its working from curl command and not working from java code.&lt;/P&gt;</description>
      <pubDate>Mon, 14 Oct 2019 16:37:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Splunk-HEC-post-call-not-working-and-getting-exception-quot-PKIX/m-p/460103#M79431</guid>
      <dc:creator>trinatha</dc:creator>
      <dc:date>2019-10-14T16:37:21Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk HEC post call not working and getting exception: "PKIX path building failed"</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Splunk-HEC-post-call-not-working-and-getting-exception-quot-PKIX/m-p/460104#M79432</link>
      <description>&lt;P&gt;Did you find the solution? I am hitting the same issue.&lt;/P&gt;</description>
      <pubDate>Fri, 10 Apr 2020 20:57:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Splunk-HEC-post-call-not-working-and-getting-exception-quot-PKIX/m-p/460104#M79432</guid>
      <dc:creator>meamitjain</dc:creator>
      <dc:date>2020-04-10T20:57:43Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk HEC post call not working and getting exception: "PKIX path building failed"</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Splunk-HEC-post-call-not-working-and-getting-exception-quot-PKIX/m-p/460105#M79433</link>
      <description>&lt;P&gt;Consider that curl and Java are using different trusted certs store. And it seems like Java's one is not trusting Splunk Cloud certs.&lt;BR /&gt;
One more option could be that java call goes via proxy and the proxy's cert is not trusted&lt;/P&gt;</description>
      <pubDate>Fri, 10 Apr 2020 21:55:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Splunk-HEC-post-call-not-working-and-getting-exception-quot-PKIX/m-p/460105#M79433</guid>
      <dc:creator>ilya_resh</dc:creator>
      <dc:date>2020-04-10T21:55:09Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk HEC post call not working and getting exception: "PKIX path building failed"</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Splunk-HEC-post-call-not-working-and-getting-exception-quot-PKIX/m-p/559671#M92555</link>
      <description>&lt;P&gt;Also running into this.&amp;nbsp; How do I go about debugging this.&lt;/P&gt;</description>
      <pubDate>Thu, 15 Jul 2021 18:47:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Splunk-HEC-post-call-not-working-and-getting-exception-quot-PKIX/m-p/559671#M92555</guid>
      <dc:creator>asmxyz</dc:creator>
      <dc:date>2021-07-15T18:47:53Z</dc:date>
    </item>
  </channel>
</rss>

