Http poller logstash plugin - auth problem

Hello,

I try to use http poller plugin with ssl and auth. I have problem with user authentication on server using http poller.

CURL WORKS PERFECT:
curl --cacert downloaded_cert.pem -X POST -u USER:PASSWORD "https://xxxxxxxxxxxxxxxxxxxx"

LOGSTASH CONFIG FILE:

input {

http_poller {
# List of urls to hit
# URLs can either have a simple format for a get request
# Or use more complex HTTP features
urls => {
some_other_service => {
method => "POST"
url => "https://xxxxxxxxxxx
auth => {
user => "USER"
password => "PASSWORD"}

}
}

truststore => "/home/ubuntu/downloaded_truststore.jks"
truststore_password => "password"
request_timeout => 300
interval => 300
codec => "json"

}
}
output {
stdout { codec => rubydebug }
}

LOGSTASH OUTPUT:

Logstash startup completed
{
"errors" => [
[0] {
"status" => 403,
"message" => "You are not permitted to execute 'function'."
}
],
"@version" => "1",
"@timestamp" => "2017-03-07T07:44:47.415Z"
}

CURL :

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