Kibana: Cant import Shakespeare.json on Sense Web Plugin

后端 未结 2 498
隐瞒了意图╮
隐瞒了意图╮ 2020-12-07 04:54

I am trying to import shakespeare.json as per elastic search tutorial.

[Environment]

  1. Elastic Search 2.1
  2. Sense -Extension for Chrome
相关标签:
2条回答
  • 2020-12-07 05:49

    You should not do this in Sense, but simply from the command line

    curl -XPUT localhost:9200/_bulk --data-binary @shakespeare.json
    

    Make sure to point to the correct path of the shakespeare.json file if it is not located in the directory you're in.

    curl -XPUT localhost:9200/_bulk --data-binary @/path/to/shakespeare.json
    

    UPDATE

    If you run on Windows and you don't have the cURL command present, you can download cURL at https://curl.haxx.se/download.html

    0 讨论(0)
  • 2020-12-07 05:50

    In Latest ElasticSearch 6, to populate the sharespeare_6.0.json, the following is the curl command

    curl -H Content-Type:application/x-ndjson -XPUT localhost:9200/shakespeare/doc/_bulk --data-binary @shakespeare_6.0.json

    0 讨论(0)
提交回复
热议问题