# Does http\_poller handle https?

**URL:** <https://discuss.elastic.co/t/does-http-poller-handle-https/28864>\
**Category:** Logstash\
**Created:** [September 8, 2015, 6:44pm UTC](https://discuss.elastic.co/t/does-http-poller-handle-https/28864 "2015-09-08T18:44:47Z")\
**Posts on this page:** 6\
**Page:** 2

<div class="post-metadata">

**Author:** ![CraigFoote](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/craigfoote/32/4571_2.png) [@CraigFoote](https://discuss.elastic.co/u/CraigFoote)\
**Post date:** [October 5, 2015, 2:47pm UTC](https://discuss.elastic.co/t/does-http-poller-handle-https/28864/21 "2015-10-05T14:47:46Z")

</div>

No I ended up using the EXEC input plugin with a curl command to call the Rest URL that returns JSON. I did create a github issue for http\_poller at [https://github.com/logstash-plugins/logstash-input-http\_poller/issues/37](https://github.com/logstash-plugins/logstash-input-http_poller/issues/37). I may revisit once an example is available.

---

<div class="post-metadata">

**Author:** ![Sameer\_Panicker](https://avatars.discourse-cdn.com/v4/letter/s/d9b06d/32.png) [@Sameer\_Panicker](https://discuss.elastic.co/u/Sameer_Panicker)\
**Post date:** [April 4, 2016, 9:34pm UTC](https://discuss.elastic.co/t/does-http-poller-handle-https/28864/22 "2016-04-04T21:34:00Z")

</div>

CraigFoote,

I am receiving the same cert error "PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target".

Could you please let me know how can I get this fixed ?

---

<div class="post-metadata">

**Author:** ![RohanKumbhar](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rohankumbhar/32/23649_2.png) [@RohanKumbhar](https://discuss.elastic.co/u/RohanKumbhar)\
**Post date:** [May 25, 2016, 9:31am UTC](https://discuss.elastic.co/t/does-http-poller-handle-https/28864/23 "2016-05-25T09:31:26Z")

</div>

Hi Team,

Is this issue resolved , i'm also getting the same error "PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target"

also getting INVALID URL for cacert path

Need your expertise to fix this

Thanks,  
Rohan

---

<div class="post-metadata">

**Author:** ![Yaiba](https://avatars.discourse-cdn.com/v4/letter/y/e5b9ba/32.png) [@Yaiba](https://discuss.elastic.co/u/Yaiba)\
**Post date:** [December 5, 2016, 10:32am UTC](https://discuss.elastic.co/t/does-http-poller-handle-https/28864/24 "2016-12-05T10:32:33Z")

</div>

Hello  
[EDIT]

Found the solution to my problem 😉 I only had to read the doc 😃

---

<div class="post-metadata">

**Author:** ![staylorx](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/staylorx/32/13848_2.png) [@staylorx](https://discuss.elastic.co/u/staylorx)\
**Post date:** [December 13, 2016, 5:25pm UTC](https://discuss.elastic.co/t/does-http-poller-handle-https/28864/25 "2016-12-13T17:25:09Z")

</div>

Having had the same problem and not finding the docs completely clear, this is what I have found that works. We have proper, publicly signed key and certs in the /etc/pki/tls folders. But I'm sure something could be worked out for self-signed (but then JKS seems easier that way).

The following works well for me:

```
input {
  http_poller {
    urls => {
      hostname_server01_memory => "https://hostname.server.com:8443/jolokia/read/java.lang:type=Memory"
    }
    connect_timeout => 15
    request_timeout => 60
    #docs aren't quite up on deprecated interval yet either
    schedule => { "every" => "1m" }
    codec => "json"
    tags => hostname_server01_memory
    metadata_target => "http_poller_metadata"
    client_cert => "/etc/pki/tls/certs/local_logstash_machine.domain.com.crt"
    client_key => "/etc/pki/tls/private/local_logstash_machine.domain.com.key"
  }
}
```

---

<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:29am UTC](https://discuss.elastic.co/t/does-http-poller-handle-https/28864/26 "2017-07-06T04:29:52Z")

</div>



[Previous page](https://discuss.elastic.co/t/does-http-poller-handle-https/28864.md?page=1)
