# Stomp output plugin ignoring codec?

**URL:** <https://discuss.elastic.co/t/stomp-output-plugin-ignoring-codec/79367>\
**Category:** Logstash\
**Created:** [March 21, 2017, 8:20am UTC](https://discuss.elastic.co/t/stomp-output-plugin-ignoring-codec/79367 "2017-03-21T08:20:39Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Benjamin\_Habegger](https://avatars.discourse-cdn.com/v4/letter/b/d26b3c/32.png) [@Benjamin\_Habegger](https://discuss.elastic.co/u/Benjamin_Habegger)\
**Post date:** [March 21, 2017, 8:20am UTC](https://discuss.elastic.co/t/stomp-output-plugin-ignoring-codec/79367/1 "2017-03-21T08:20:39Z")

</div>

In the documentation codec is marked as one of the plugins options. The expected behavior is that the codec is used as the message body (eg. codec =\> plain, should give the message as is). However json is always the returned format.

This seems to be confirmed by line 86 of the plugin's code :  
`t.send(event.sprintf(@destination), event.to_json, headers)`

Aka event.to\_json seems to short circuit the codec.

---

<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 18, 2017, 8:21am UTC](https://discuss.elastic.co/t/stomp-output-plugin-ignoring-codec/79367/2 "2017-04-18T08:21:01Z")

</div>

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