# Http output not working : http output failure for Logstash 5.0\[SOLVED\]

**URL:** https://discuss.elastic.co/t/http-output-not-working-http-output-failure-for-logstash-5-0-solved/71517
**Category:** Logstash
**Created:** [January 13, 2017, 12:23pm UTC](https://discuss.elastic.co/t/http-output-not-working-http-output-failure-for-logstash-5-0-solved/71517 "2017-01-13T12:23:51Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![rkhapre](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rkhapre/32/48333_2.png) [@rkhapre](https://discuss.elastic.co/u/rkhapre)
#### Post date: [January 13, 2017, 12:23pm UTC](https://discuss.elastic.co/t/http-output-not-working-http-output-failure-for-logstash-5-0-solved/71517/1 "2017-01-13T12:23:51Z")

</div>

Hi All

Here is my output conf file, i am not able to post data to endpoint

```
output {
    http {
      url => "https://abcd.com/dataEventRequests"
         http_method => "post"
         content_type => "application/vnd.abcd.resourceitem+json"
         headers => {
   "Authorization" => "Basic SENNX0lNUEw6SnJvOTg0ODM="
   "Host" => "abcd.com:443"
   "Accept-Encoding" => "gzip,deflate"
   "Content-Length" => "292"
         }
         format => "json"
   message =>'{"sourceId":"ABCD_EFG","requestNumber":"1234","requestTimestamp":"2017-01-12T08:00:00.000-08:00"}'

    }
    }

```

My output is in JSON format, i checked in SOAP UI it is working well.

Here is the error that you get in log file

`[2017-01-13T17:51:54,686][ERROR][logstash.outputs.http] [HTTP Output Failure] Could not fetch URL {:url=>"https://abcd.com/dataEventRequests",..........................`

Again this working well for me in the SOAP UI using REST projects

---

<div class="post-metadata">

### Author: ![rkhapre](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rkhapre/32/48333_2.png) [@rkhapre](https://discuss.elastic.co/u/rkhapre)
#### Post date: [January 13, 2017, 2:05pm UTC](https://discuss.elastic.co/t/http-output-not-working-http-output-failure-for-logstash-5-0-solved/71517/2 "2017-01-13T14:05:39Z")

</div>

@wiibaa

Hi wiibaa, is there any documentation for this, so that i make sure my http output in conf file is correct

---

<div class="post-metadata">

### Author: ![rkhapre](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rkhapre/32/48333_2.png) [@rkhapre](https://discuss.elastic.co/u/rkhapre)
#### Post date: [January 13, 2017, 3:20pm UTC](https://discuss.elastic.co/t/http-output-not-working-http-output-failure-for-logstash-5-0-solved/71517/3 "2017-01-13T15:20:34Z")

</div>

its working for me now.

No issues

I gave header with "Cookie" and it worked.  
Looks like http output plugin does not take care of cookie on its own

---

<div class="post-metadata">

### Author: ![graham.dalessandro](https://avatars.discourse-cdn.com/v4/letter/g/5e9695/32.png) [@graham.dalessandro](https://discuss.elastic.co/u/graham.dalessandro)
#### Post date: [January 30, 2017, 6:54pm UTC](https://discuss.elastic.co/t/http-output-not-working-http-output-failure-for-logstash-5-0-solved/71517/4 "2017-01-30T18:54:20Z")

</div>

can you please provide an example of what you changed? I am trying to use a loopback address in my config and i keep getting the same error as you. Wondering if i have the same issue.

---

<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: [February 27, 2017, 6:54pm UTC](https://discuss.elastic.co/t/http-output-not-working-http-output-failure-for-logstash-5-0-solved/71517/5 "2017-02-27T18:54:51Z")

</div>

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