Does http_poller handle https?

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. I may revisit once an example is available.

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 ?

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

Hello
[EDIT]

Found the solution to my problem :wink: I only had to read the doc :smiley:

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"
  }
}
1 Like