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

**URL:** <https://discuss.elastic.co/t/logstash-http-output-plugin-error-could-not-fetch-url-network-is-unreachable-connect-failed/267633>\
**Category:** Logstash\
**Created:** [March 18, 2021, 10:04am UTC](https://discuss.elastic.co/t/logstash-http-output-plugin-error-could-not-fetch-url-network-is-unreachable-connect-failed/267633 "2021-03-18T10:04:08Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![kumarvijender](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kumarvijender/32/85744_2.png) [@kumarvijender](https://discuss.elastic.co/u/kumarvijender)\
**Post date:** [March 18, 2021, 10:04am UTC](https://discuss.elastic.co/t/logstash-http-output-plugin-error-could-not-fetch-url-network-is-unreachable-connect-failed/267633/1 "2021-03-18T10:04:08Z")

</div>

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"]`

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [April 15, 2021, 10:04am UTC](https://discuss.elastic.co/t/logstash-http-output-plugin-error-could-not-fetch-url-network-is-unreachable-connect-failed/267633/2 "2021-04-15T10:04:47Z")

</div>

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