# How to ingest json document (where each document is metadata)?

**URL:** <https://discuss.elastic.co/t/how-to-ingest-json-document-where-each-document-is-metadata/77451>\
**Category:** Elasticsearch\
**Created:** [March 6, 2017, 7:00am UTC](https://discuss.elastic.co/t/how-to-ingest-json-document-where-each-document-is-metadata/77451 "2017-03-06T07:00:34Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Anubha\_Agrawal](https://avatars.discourse-cdn.com/v4/letter/a/f04885/32.png) [@Anubha\_Agrawal](https://discuss.elastic.co/u/Anubha_Agrawal)\
**Post date:** [March 6, 2017, 7:00am UTC](https://discuss.elastic.co/t/how-to-ingest-json-document-where-each-document-is-metadata/77451/1 "2017-03-06T07:00:34Z")

</div>

Hi, I'm new to elasticsearch. I have a json file where each document has metadata field.  
eg-  
{ "\_id" : { "$oid" : "58735ab9e4b09d14bfb7525b" }, "avro\_schema" : "{"type":"record","name":"batch\_id\_demo","namespace":"iw.import.batch\_id\_demo","doc":"IW Schema","fields":[{"name":"LNAME","type":["null","string"],"default":null,"columnName":"LNAME","sqlType":"12","scale":"0","precision":"0"},"isAuditColumn" : true, "javaType" : "String", "categoricalType" : "categorical", "numCategories" : 1, "categories" : "I", "categoryFrequencies" : "17" } ] }

How do I ingest this file in elasticsearch?

---

<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 3, 2017, 7:00am UTC](https://discuss.elastic.co/t/how-to-ingest-json-document-where-each-document-is-metadata/77451/2 "2017-04-03T07:00:39Z")

</div>

Closed on April 3, 2017, 7:00am UTC

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