Playing with more interesting data, chapter 2


(Alvaro) #1

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


(Mark Walkom) #2

You cannot, you need to use curl or similar.


(Alvaro) #3

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!


(Mark Walkom) #4

Curl is the tool.

What OS are you on?


(Alvaro) #5

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!


(system) #6

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