Logstash HTTP Output Plugin Error Could not fetch URL, Network is unreachable (connect failed)

I have configured a couple of pipelines in logstash, In one of the pipeline I have configured an http out plugin like

output {
  http {
    url => "url"
    http_method => "post"
    request_timeout => <timeout>
    automatic_retries => <retry count>
    retry_failed => false
  }
}

For testing purpose, I configured a webhook url in url section and checked that it is receiving GET/POST requests using curl. But when logstash try to post data on the url using logstash.outputs.http plugin, it fails with ::Manticore::SocketException

[HTTP Output Failure] Could not fetch URL {:url=>"url", :method=>:post, :body=> "some-body" :message=>"Network is unreachable (connect failed)", :class=>"Manticore::SocketException"]

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