Lost in tutorial, Windows

I didn't know in which category this should fit... anyway, I'm trying to get started on Elastic and found this page after watching a video. At the bottom is a quick tutorial that got me to Kibana on the browser... after that, I didn't know really where to go.

Then, I found the reference that says to do stuff on Kibana... but my Kibana just says that it's unable to fetch mapping. So I found this other link that says somethings about loading a sample and thought "ok, maybe now I'll get somewhere!" - but oh noes. Not yet.

I fired up powershell, tried running the piece of code to set up mapping for Shakespeare and failed. PS complains about "-d" parameter being ambiguous.

I know that I just probably only need a little more research online and I'll do it, but I felt like this warranted a little (ops) questioning about a Windows tutorial. Maybe I'm looking in the wrong place? Maybe I'm following the wrong steps? Maybe there's a hidden gem I've yet to find? =p

Anyway, thanks for putting up with a new guy, and congrats on what seems to be an awesome tool!

For Windows you need to use powershell, and we kinda suck at instructions for that platform sorry :frowning:

Try Invoke-RestMethod -Uri ESURLHERE -Method Post -InFile YOURFILEHERE

thanks for the reply, Mark! And don't worry, the fact that there's any material at all for Windows is already more than the usual.

The exact place I've had problem was on this page - https://www.elastic.co/guide/en/kibana/current/tutorial-load-dataset.html with the following command:

curl -XPUT http://localhost:9200/shakespeare -d '
 "mappings" : {
  "_default_" : {
   "properties" : {
    "speaker" : {"type": "string", "index" : "not_analyzed" },
    "play_name" : {"type": "string", "index" : "not_analyzed" },
    "line_id" : { "type" : "integer" },
    "speech_number" : { "type" : "integer" }

I'll look more into using Invoke-RestMethod instead of cURL then, thanks for the tip!

If you have Kibana installed, then head to Dev Tools > Console.
Then paste in the curl command and it'll convert it, you can then just run it in the browser.

You can store ES query into a variable using here-string format, then call Invoke-RestMethod -Body $your_query_variable. This is how I use PS to query and alert on ES logs.

1 Like

I hadn't had the time lately to dive again into trying ES, but that sounds like a nice idea! Thanks for sharing, anhlqn!

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