Hi,
How do you ignore the SSL validation when using the http_poller plugin? I get the following error when I try to pull API events from a reputable sites REST API. The site is using a valid certificate as its a well know security site so I am not sure why its failing to begin with. Am I structuring my input statement incorrectly as it using APIv4 Access and a Key and valid certificate?
I get the following error:
I have tried the following configurations in my Input config.
input {
http_poller {
urls => {
test_api => {
method => "get"
url => "https://api.example.com/v4/"
auth => {
user => "<key ID>"
password => "<Secret>"
ssl_certificate_verification => false
}
headers => {
Accept => "application/json"
}
}
}
request_timeout => 60
schedule => { cron => "* * * * * UTC" }
codec => "json"
}
}
AND
input {
http_poller {
urls => {
test_api => {
method => "get"
url => "https://api.example.com/v4/"
auth => {
user => "<key ID>"
password => "<Secret>"
ssl => true
ssl_certificate_verification => false
}
headers => {
Accept => "application/json"
}
}
}
request_timeout => 60
schedule => { cron => "* * * * * UTC" }
codec => "json"
}
}
As well as
input {
http_poller {
urls => {
test_api => {
method => "get"
url => "https://api.example.com/v4/"
auth => {
user => "<key ID>"
password => "<Secret>"
ssl_verification_mode => none
}
headers => {
Accept => "application/json"
}
}
}
request_timeout => 60
schedule => { cron => "* * * * * UTC" }
codec => "json"
}
}
But I always get this error. I am not sure why when the site is using a valid certificate. I am able to connect to the API by using curl -k to ignore the ssl certificate so is there a Logstash equivalent?