# Uploading Shakespeare json to index in Kibana

**URL:** <https://discuss.elastic.co/t/uploading-shakespeare-json-to-index-in-kibana/171554>\
**Category:** Kibana\
**Created:** [March 8, 2019, 8:24pm UTC](https://discuss.elastic.co/t/uploading-shakespeare-json-to-index-in-kibana/171554 "2019-03-08T20:24:41Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Vincent\_Stevenson](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/vincent_stevenson/32/48477_2.png) [@Vincent\_Stevenson](https://discuss.elastic.co/u/Vincent_Stevenson)\
**Post date:** [March 8, 2019, 8:24pm UTC](https://discuss.elastic.co/t/uploading-shakespeare-json-to-index-in-kibana/171554/1 "2019-03-08T20:24:41Z")

</div>

Hi,

I am trying to upload the Shakespeare json into the Shakespeare index I created. From Kibana, I executed:  
PUT /shakespeare  
{  
"mappings": {  
"doc": {  
"properties": {  
"speaker": {"type": "keyword"},  
"play\_name": {"type": "keyword"},  
"line\_id": {"type": "integer"},  
"speech\_number": {"type": "integer"}  
}  
}  
}  
}

But, when I execute: curl -H 'Content-Type: application/x-ndjson' -XPOST 'localhost:9200/shakespeare/doc/\_bulk?pretty' --data-binary @shakespeare\_6.0.json

or POST 'localhost:9200/shakespeare/doc/\_bulk?pretty' --data-binary @shakespeare\_6.0.json, it errors out.

I tried directly pasting the json POST /shakespeare/\_bulk  
{  
...  
}

But that errors out saying it's too big.

What's the right way to do this? Is there a command where I can reference the download link for the Shakespeare json?

Thanks!

---

<div class="post-metadata">

**Author:** ![rashmi](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rashmi/32/16391_2.png) [@rashmi](https://discuss.elastic.co/u/rashmi)\
**Post date:** [March 8, 2019, 11:10pm UTC](https://discuss.elastic.co/t/uploading-shakespeare-json-to-index-in-kibana/171554/2 "2019-03-08T23:10:36Z")

</div>

The complete works of William Shakespeare, suitably parsed into fields. Download[`shakespeare.json`](https://download.elastic.co/demos/kibana/gettingstarted/shakespeare_6.0.json).

```auto
PUT /shakespeare
{
 "mappings": {
  "doc": {
   "properties": {
    "speaker": {"type": "keyword"},
    "play_name": {"type": "keyword"},
    "line_id": {"type": "integer"},
    "speech_number": {"type": "integer"}
   }
  }
 }
}

```

```auto
curl -H 'Content-Type: application/x-ndjson' -XPOST 'localhost:9200/shakespeare/doc/_bulk?pretty' --data-binary @shakespeare_6.0.json

```

Follow: [https://www.elastic.co/guide/en/kibana/current/tutorial-load-dataset.html](https://www.elastic.co/guide/en/kibana/current/tutorial-load-dataset.html)

Else use sample data : [https://www.elastic.co/guide/en/kibana/current/tutorial-load-dataset.html](https://www.elastic.co/guide/en/kibana/current/tutorial-load-dataset.html)

Cheers  
Rashmi

---

<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 5, 2019, 11:10pm UTC](https://discuss.elastic.co/t/uploading-shakespeare-json-to-index-in-kibana/171554/3 "2019-04-05T23:10:40Z")

</div>

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