# Logstash HTTP(s) output not working

**URL:** <https://discuss.elastic.co/t/logstash-http-s-output-not-working/57900>\
**Category:** Logstash\
**Created:** [August 12, 2016, 8:25am UTC](https://discuss.elastic.co/t/logstash-http-s-output-not-working/57900 "2016-08-12T08:25:10Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![venkaty](https://avatars.discourse-cdn.com/v4/letter/v/919ad9/32.png) [@venkaty](https://discuss.elastic.co/u/venkaty)\
**Post date:** [August 12, 2016, 8:25am UTC](https://discuss.elastic.co/t/logstash-http-s-output-not-working/57900/1 "2016-08-12T08:25:10Z")

</div>

Hi,

I downloaded latest logstash 2.3.4 and deployed on Windows machine with the following output configuration

http {  
url =\> "[https://127.0.0.1:443/collectionstats](https://127.0.0.1:443/collectionstats)"  
http\_method =\> "post"  
headers =\> ['Authorization', 'test']  
}

Following is the error observed

message=\>"PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target",

:url=\>"[https://127.0.0.1:443/collectionstats](https://127.0.0.1:443/collectionstats)",  
:headers=\>{"Authorization"=\>"test", "Content-Type"=\>"application/json"}, :class=\>"Manticore::ClientProtocolException", :backtrace=\>nil, :level=\>:error}

Please let me know the issue the above configuration.

---

<div class="post-metadata">

**Author:** ![venkaty](https://avatars.discourse-cdn.com/v4/letter/v/919ad9/32.png) [@venkaty](https://discuss.elastic.co/u/venkaty)\
**Post date:** [August 18, 2016, 10:20am UTC](https://discuss.elastic.co/t/logstash-http-s-output-not-working/57900/2 "2016-08-18T10:20:49Z")

</div>

Anyone with the idea please?

Thanks!

---

<div class="post-metadata">

**Author:** ![guyboertje](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/guyboertje/32/31592_2.png) [@guyboertje](https://discuss.elastic.co/u/guyboertje)\
**Post date:** [August 19, 2016, 7:28am UTC](https://discuss.elastic.co/t/logstash-http-s-output-not-working/57900/3 "2016-08-19T07:28:14Z")

</div>

> [@venkaty](#):
>
> sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target

I tried this google search:  
`java windows localhost sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested `  
I found these:

> **[Oracle Blogs](https://blogs.oracle.com/)**
>
> Oracle Blogs

> **[SunCertPathBuilderException: unable to find valid certification path to...](https://mkyong.com/webservices/jax-ws/suncertpathbuilderexception-unable-to-find-valid-certification-path-to-requested-target/)**
>
> \- SunCertPathBuilderException: unable to find valid certification path to requested target

---

<div class="post-metadata">

**Author:** ![venkaty](https://avatars.discourse-cdn.com/v4/letter/v/919ad9/32.png) [@venkaty](https://discuss.elastic.co/u/venkaty)\
**Post date:** [August 22, 2016, 7:59am UTC](https://discuss.elastic.co/t/logstash-http-s-output-not-working/57900/4 "2016-08-22T07:59:42Z")

</div>

Working fine with the following snippet

http {  
url =\> "[https://127.0.0.1:443/collectionstats](https://127.0.0.1:443/collectionstats)"  
http\_method =\> "post"  
headers =\> ['Authorization', 'test']  
ssl\_certificate\_validation =\> false  
verify\_ssl =\> false  
}

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 6, 2017, 4:42am UTC](https://discuss.elastic.co/t/logstash-http-s-output-not-working/57900/5 "2017-07-06T04:42:22Z")

</div>


