# Error in parsing Pretty Json Data

**URL:** <https://discuss.elastic.co/t/error-in-parsing-pretty-json-data/293103>\
**Category:** Logstash\
**Created:** [December 29, 2021, 10:46am UTC](https://discuss.elastic.co/t/error-in-parsing-pretty-json-data/293103 "2021-12-29T10:46:48Z")\
**Posts on this page:** 1\
**Showing post:** 2

<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:** [December 29, 2021, 5:03pm UTC](https://discuss.elastic.co/t/error-in-parsing-pretty-json-data/293103/2 "2021-12-29T17:03:08Z")

</div>

You need to use a multiline codec to combine the pretty-printed JSON into a single event. There is an example of that [here](https://discuss.elastic.co/t/parsing-xml-log-file-with-logstash/167306/2).

---

_[View the full topic](https://discuss.elastic.co/t/error-in-parsing-pretty-json-data/293103)._
