# Log stack freezing After starting API end point

**URL:** <https://discuss.elastic.co/t/log-stack-freezing-after-starting-api-end-point/253618>\
**Category:** Logstash\
**Created:** [October 28, 2020, 9:02pm UTC](https://discuss.elastic.co/t/log-stack-freezing-after-starting-api-end-point/253618 "2020-10-28T21:02:37Z")\
**Posts on this page:** 1\
**Showing post:** 4

<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:** [October 31, 2020, 3:56pm UTC](https://discuss.elastic.co/t/log-stack-freezing-after-starting-api-end-point/253618/4 "2020-10-31T15:56:00Z")

</div>

If your JSON files are pretty-printed then you will need to use a multiline codec on the file input to combine all the lines of a single JSON object into one event.

If you want to read the entire file as a single event you can use [this](https://discuss.elastic.co/t/parsing-array-of-json-objects-with-logstash-and-injesting-to-elastic/203197/2) configuration.

---

_[View the full topic](https://discuss.elastic.co/t/log-stack-freezing-after-starting-api-end-point/253618)._
