# Slow performance on big unstructured file

**URL:** <https://discuss.elastic.co/t/slow-performance-on-big-unstructured-file/284567>\
**Category:** Logstash\
**Created:** [September 19, 2021, 1:40pm UTC](https://discuss.elastic.co/t/slow-performance-on-big-unstructured-file/284567 "2021-09-19T13:40:34Z")\
**Posts on this page:** 1\
**Showing post:** 11

<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:** [September 22, 2021, 5:31pm UTC](https://discuss.elastic.co/t/slow-performance-on-big-unstructured-file/284567/11 "2021-09-22T17:31:39Z")

</div>

> [@nestor1](#):
>
> Is there any option to tell logstash that one file should be one document?

Use a multiline codec. An example is [here](https://discuss.elastic.co/t/parsing-array-of-json-objects-with-logstash-and-injesting-to-elastic/203197/2).

---

_[View the full topic](https://discuss.elastic.co/t/slow-performance-on-big-unstructured-file/284567)._
