Uploading Shakespeare json to index in Kibana

The complete works of William Shakespeare, suitably parsed into fields. Download shakespeare.json .

PUT /shakespeare
{
 "mappings": {
  "doc": {
   "properties": {
    "speaker": {"type": "keyword"},
    "play_name": {"type": "keyword"},
    "line_id": {"type": "integer"},
    "speech_number": {"type": "integer"}
   }
  }
 }
}
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

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

Cheers
Rashmi