Playing with more interesting data, chapter 2

I am with the second part of the manual: Playing with more interesting data.

A Practical Introduction to Elasticsearch

Ready to try Elasticsearch and see results? Copy and paste these requests to get started.
Let’s get all this data into Elasticsearch. Since the body of this request is fairly big (more than 200,000 lines), it is recommended to do this via a tool that allows to load the body of a request from a file - for instance, using curl:

curl -XPOST 'localhost:9200/shakespeare/_bulk?pretty' --data-binary @shakespeare.json

That command is for curl, but... how can I load this entire file into kibana console devtools?

Thank you

You cannot, you need to use curl or similar.

1 Like

Umm i suspected that because when I tried i could not do it via devtools.

Do you know a proper tool to run this command on curl_

thanks!

Curl is the tool.

What OS are you on?

1 Like

OSx, i just got the answer, thanks, but yeah I was trying also a plugin for chrome called Postman.

But curl is way easier.

just ran this from the directory.

curl -XPOST 'localhost:9200/shakespeare/_bulk?pretty' --data-binary @shakespeare.json

Thank You all!

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