Http_poller input with basic authentification

Hi ,
i can't get data from this api:
this is my logstash file.conf:
input {
http_poller {
urls => {
url => "XXXXXXXX"
auth => {
user => "bbc"
password => "bbc"
}
}
request_timeout => 60
schedule => { every => "60s" }
codec => "json"
}
}

output {
elasticsearch {
hosts => "localhost:9200"
index => "test_auth"
}
stdout { codec => rubydebug }
}

any help please !

The url, user, and password should be in a hash, as shown in the documentation.

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