# Importing large JSON into Elasticsearch

**URL:** <https://discuss.elastic.co/t/importing-large-json-into-elasticsearch/174644>\
**Category:** Elasticsearch\
**Created:** [March 30, 2019, 3:42pm UTC](https://discuss.elastic.co/t/importing-large-json-into-elasticsearch/174644 "2019-03-30T15:42:03Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jbpeter](https://avatars.discourse-cdn.com/v4/letter/j/8c91f0/32.png) [@jbpeter](https://discuss.elastic.co/u/jbpeter)\
**Post date:** [March 30, 2019, 3:42pm UTC](https://discuss.elastic.co/t/importing-large-json-into-elasticsearch/174644/1 "2019-03-30T15:42:03Z")

</div>

I am trying to import a large JSON file which contains millions of records and a file size of about 10GB. I wonder what is the best way to do this?

The dataset is available here: [https://opentender.eu/all/download](https://opentender.eu/all/download)

I initialy tried to split my JSON file into individual files containing just one record and use filebeats to upload them to elasticsearch but I feel there has to be a better way to do it...

Thank you!

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [March 30, 2019, 4:55pm UTC](https://discuss.elastic.co/t/importing-large-json-into-elasticsearch/174644/2 "2019-03-30T16:55:17Z")

</div>

I think that's the right way.  
Or if you have one json document per line, may be you don't need to split into multiple files?

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [April 27, 2019, 4:55pm UTC](https://discuss.elastic.co/t/importing-large-json-into-elasticsearch/174644/3 "2019-04-27T16:55:20Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
