Using http poller for https server

Hi there

i want to ask about http poller. so i test this plugin in my VM, and this is the configuration:

input{
http_poller{
urls => {
test => {
method => get
user => "elastic"
password => "myPassword"
url => "https://192.168.11.10:9200/_cluster/health"
headers => {
Accept => "application/json"
}
}
}
cacert => "/elastic/elasticsearch-7.13.4/config/ca/ca.crt"
client_cert => "/elastic/elasticsearch-7.13.4/config/node-1/node-1.crt"
request_timeout => 60
connect_timeout => 30
automatic_retries => 3
schedule => { cron => "1 * * * * UTC"}
codec => "json"
}
}

but unfortunately the result of this configuration is nothing and there is no error at logstash log. do i have to define cacert and client_cert at the other place? like inside the curly braces of the url or inside the curly braces of the test?

Thank you

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.