# Parsing a pretty formatted JSON file using Logstash

**URL:** <https://discuss.elastic.co/t/parsing-a-pretty-formatted-json-file-using-logstash/224224>\
**Category:** Logstash\
**Created:** [March 19, 2020, 7:25am UTC](https://discuss.elastic.co/t/parsing-a-pretty-formatted-json-file-using-logstash/224224 "2020-03-19T07:25:07Z")\
**Posts on this page:** 1\
**Showing post:** 8

<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:** [March 22, 2020, 4:24pm UTC](https://discuss.elastic.co/t/parsing-a-pretty-formatted-json-file-using-logstash/224224/8 "2020-03-22T16:24:45Z")

</div>

If you want to consume the entire file as a single event you must use a multiline codec. See [this](https://discuss.elastic.co/t/parsing-array-of-json-objects-with-logstash-and-injesting-to-elastic/203197/2) post for an example.

---

_[View the full topic](https://discuss.elastic.co/t/parsing-a-pretty-formatted-json-file-using-logstash/224224)._
