Following Getting Started with Kibana.
Setup Kibana
Download kibana tar package file (kibana-4.2.0-linux-x64.tar.gz) and extract to $KIBANA_HOME.
Modify $KIBANA_HOME/config/kibana.yml, uncomment
elasticsearch.url: "http://localhost:9200"
(if elasticsearch server is on localhost).
Start server with bin/kibana
.
Import Data
Import accounts with curl -XPOST 'localhost:9200/accounts/account/_bulk?pretty' --data-binary @accounts.json
instead of curl -XPOST 'localhost:9200/bank/_bulk?pretty' --data-binary @accounts.json
.
curl -XPOST 'localhost:9200/accounts/account/_bulk?pretty' --data-binary @accounts.json
head -1 accounts.json
{"index":{"_id":"1"}}
curl -XPOST 'localhost:9200/shakespeare/_bulk?pretty' --data-binary @shakespeare.json
head -1 shakespeare.json
{"index":{"_index":"shakespeare","_type":"act","_id":0}}
So if the index and type is not defined in json file, it should be defined when imported with curl.