# How to bulk insert 600MB large json file to elasticsearch?

**URL:** <https://discuss.elastic.co/t/how-to-bulk-insert-600mb-large-json-file-to-elasticsearch/142700>\
**Category:** Elasticsearch\
**Created:** [August 2, 2018, 7:36am UTC](https://discuss.elastic.co/t/how-to-bulk-insert-600mb-large-json-file-to-elasticsearch/142700 "2018-08-02T07:36:17Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)\
**Post date:** [August 2, 2018, 8:03am UTC](https://discuss.elastic.co/t/how-to-bulk-insert-600mb-large-json-file-to-elasticsearch/142700/2 "2018-08-02T08:03:10Z")

</div>

Have a look at these recent threads:

> [@1GB single json record](https://discuss.elastic.co/t/1gb-single-json-record/142512):
>
> Hi all, We are trying to let the filebeat to collect a json file. Which is a single record json file, but it got 1GB file size. We tried filebeat send to logstash also the filebeat send to ES directly. Unfortunately we are not lucky enough. Does any body face this problem before? Any replies will be very helpful. Thanks, From Mulder

> [@How to bulk load huge JSON docs from files using Java client?](https://discuss.elastic.co/t/how-to-bulk-load-huge-json-docs-from-files-using-java-client/142607):
>
> Hi. I need your help / advice / opinion: TL;DR: How do I read file from the disk for bulk loading using IndexRequest.source(BytesReference)? And the detailed question: The context: I am indexing text in a public dataset, such as: [http://data.cityofnewyork.us/resource/nc67-uf89](http://data.cityofnewyork.us/resource/nc67-uf89) The dataset includes some simple meta-data fields (such as dataset name and description) and a large CSV table of the data itself. I am indexing the text from the big CSV table. The CSV table size may be a few GBs …

If the file consists of multiple documents, break it up into smaller chunks. If it is a single document, rethink how you are going to index and search it.

---

_[View the full topic](https://discuss.elastic.co/t/how-to-bulk-insert-600mb-large-json-file-to-elasticsearch/142700)._
