# HTTP output plugin clarification

**URL:** https://discuss.elastic.co/t/http-output-plugin-clarification/202231
**Category:** Logstash
**Created:** [October 3, 2019, 6:59pm UTC](https://discuss.elastic.co/t/http-output-plugin-clarification/202231 "2019-10-03T18:59:31Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![nxns1](https://avatars.discourse-cdn.com/v4/letter/n/3e96dc/32.png) [@nxns1](https://discuss.elastic.co/u/nxns1)
#### Post date: [October 3, 2019, 6:59pm UTC](https://discuss.elastic.co/t/http-output-plugin-clarification/202231/1 "2019-10-03T18:59:31Z")

</div>

Hi, Im sending a json format input to logstash, and I have it configured to post to a http endpoint. When I output the data on stdout I get something like:  
{  
"path" =\> "blabla",  
"@timestamp" =\> blabla,  
"host" =\> "blabla",  
"message" =\> "blabla",  
"@version" =\> "1"  
}

I was wondering if it's only the message that gets send to the http endpoint, or this whole string? I want to know because I get an http error 400, and I am trying to figure out if it's the bad format of the string. (I only need whats inside the message field)

---

<div class="post-metadata">

### Author: ![Badger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/badger/32/25190_2.png) [@Badger](https://discuss.elastic.co/u/Badger)
#### Post date: [October 3, 2019, 7:39pm UTC](https://discuss.elastic.co/t/http-output-plugin-clarification/202231/2 "2019-10-03T19:39:07Z")

</div>

The default codec on an http output is [https://www.elastic.co/guide/en/logstash/7.4/plugins-codecs-plain.html](https://www.elastic.co/guide/en/logstash/7.4/plugins-codecs-plain.html). If you do not specify a format then it will [use](https://github.com/logstash-plugins/logstash-codec-plain/blob/892c5a304e0d08985daf6d843db2dbbe566562c5/lib/logstash/codecs/plain.rb#L39) the timestamp, hostname, and [message] field concatenated.

---

<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: [October 31, 2019, 7:39pm UTC](https://discuss.elastic.co/t/http-output-plugin-clarification/202231/3 "2019-10-31T19:39:16Z")

</div>

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