# Logstash wrapping the data with document

**URL:** <https://discuss.elastic.co/t/logstash-wrapping-the-data-with-document/344135>\
**Category:** Logstash\
**Created:** [September 29, 2023, 12:13pm UTC](https://discuss.elastic.co/t/logstash-wrapping-the-data-with-document/344135 "2023-09-29T12:13:46Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![leandrojmp](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/leandrojmp/32/107231_2.png) [@leandrojmp](https://discuss.elastic.co/u/leandrojmp)\
**Post date:** [September 29, 2023, 12:53pm UTC](https://discuss.elastic.co/t/logstash-wrapping-the-data-with-document/344135/4 "2023-09-29T12:53:59Z")

</div>

> [@Keremcan\_Seker](#):
>
> why it does not do that ?

It is a bug, the http input per default will expect the massages as `json`, so if your message is a `json` it will basically ignore anything you put in the `codec` option.

Check this [answer](https://discuss.elastic.co/t/json-codec-plugin-target-option-http-input/304217/4) about it.

---

_[View the full topic](https://discuss.elastic.co/t/logstash-wrapping-the-data-with-document/344135)._
