Logstash HTTP(s) output not working

Working fine with the following snippet

http {
url => "https://127.0.0.1:443/collectionstats"
http_method => "post"
headers => [ 'Authorization', 'test']
ssl_certificate_validation => false
verify_ssl => false
}