I am trying to import the accounts.json data using _bulk api as per the elastic search tutorial( https://www.elastic.co/guide/en/kibana/current/getting-started.html ). I'm using google-chrome's Sense plugin for this task.
When i paste the url curl -XPOST 'localhost:9200/bank/account/_bulk?pretty' --data-binary @accounts.json
on Sense, its converted to POST /bank/account/_bulk?pretty
.
The solution here : Kibana: Cant import Shakespeare.json on Sense Web Plugin, says, to use CURL command. But on windows, the curl command is not recognized.
curl -XPUT localhost:9200/_bulk --data-binary @shakespeare.json
'curl' is not recognized as an internal or external command, operable program or batch file.
Just to have the correct answer:
Download curl for Windows here: https://curl.haxx.se/download.html
Direct link to curl-7.54.1-win64-mingw
Unpack the
bin
folder from the archive somewhere on your local drive.Add the path to that folder to your PATH system variable.
Restart your
explorer.exe
process or restart Windows. This is needed in order for the shell to refresh the value of PATH.In the command-line shell, execute the following command: