# Logstash http output plugin with msgpack

**URL:** <https://discuss.elastic.co/t/logstash-http-output-plugin-with-msgpack/136259>\
**Category:** Logstash\
**Created:** [June 18, 2018, 7:59am UTC](https://discuss.elastic.co/t/logstash-http-output-plugin-with-msgpack/136259 "2018-06-18T07:59:23Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![kishoreck](https://avatars.discourse-cdn.com/v4/letter/k/ed655f/32.png) [@kishoreck](https://discuss.elastic.co/u/kishoreck)\
**Post date:** [June 18, 2018, 7:59am UTC](https://discuss.elastic.co/t/logstash-http-output-plugin-with-msgpack/136259/1 "2018-06-18T07:59:24Z")

</div>

Hi,

We have been working with "json\_batch" feature that was enabled recently in logstash-output-http plugin.

We are also exploring the usage of "msgpack" codec along with this plugin. I couldn't find any documentation on this usage. Can you please confirm if it is possible to send a msgpack data or an array of msgpack data using logstash-output-http plugin?

logstash-output-http plugin version: v5.2.0

Regards,  
Kishore

---

<div class="post-metadata">

**Author:** ![yaauie](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/yaauie/32/23363_2.png) [@yaauie](https://discuss.elastic.co/u/yaauie)\
**Post date:** [June 18, 2018, 11:00pm UTC](https://discuss.elastic.co/t/logstash-http-output-plugin-with-msgpack/136259/2 "2018-06-18T23:00:38Z")

</div>

The msgpack codec should work with any input or output that supports codecs, including the HTTP Output Plugin.

---

<div class="post-metadata">

**Author:** ![mbharath](https://avatars.discourse-cdn.com/v4/letter/m/cc9497/32.png) [@mbharath](https://discuss.elastic.co/u/mbharath)\
**Post date:** [June 19, 2018, 3:51am UTC](https://discuss.elastic.co/t/logstash-http-output-plugin-with-msgpack/136259/3 "2018-06-19T03:51:40Z")

</div>

Hi Biesemeyer, We want to know if the msgpack codec will work along with json\_batch feature together. As of now, we are using the output config as follows and this works as expected.  
output {  
http {  
url =\> "[http://xxxx:8080](http://xxxx:8080)"  
http\_method =\> "post"  
http\_compression =\> "false"  
format =\> "json\_batch"  
codec =\> "json"  
}  
However, what we want is to change the codec to "msgpack" instead of json and expect json\_batch feature to also be supported at the same time. Will this work?

---

<div class="post-metadata">

**Author:** ![yaauie](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/yaauie/32/23363_2.png) [@yaauie](https://discuss.elastic.co/u/yaauie)\
**Post date:** [June 19, 2018, 7:20pm UTC](https://discuss.elastic.co/t/logstash-http-output-plugin-with-msgpack/136259/4 "2018-06-19T19:20:11Z")

</div>

Looking at [the code](https://github.com/logstash-plugins/logstash-output-http/blob/8a588bca4f19fb8d7b67994ea3c6cddabcaeb7f5/lib/logstash/outputs/http.rb), it appears that specifying `format => json_batch` _supercedes_ the codec, so the two are not compatible with each other.

---

<div class="post-metadata">

**Author:** ![mbharath](https://avatars.discourse-cdn.com/v4/letter/m/cc9497/32.png) [@mbharath](https://discuss.elastic.co/u/mbharath)\
**Post date:** [June 20, 2018, 4:25am UTC](https://discuss.elastic.co/t/logstash-http-output-plugin-with-msgpack/136259/5 "2018-06-20T04:25:28Z")

</div>

Thanks. Will this feature be considered in logstash? msgpack\_batch + msgpack codec? I think Fluentd supports it.

---

<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:** [July 18, 2018, 4:27am UTC](https://discuss.elastic.co/t/logstash-http-output-plugin-with-msgpack/136259/6 "2018-07-18T04:27:39Z")

</div>

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