Kibana Tutorial 404 Error

Hi I'm new to ELK and was trying to go through the Kibana tutorial. I am having issues loading the sample data set shakespeare, account and logs

I tried both with curl and powershell loading the data:

curl -elastic -H 'Content-Type: application/x-ndjson' -XPOST 'localhost:5601/shakespeare/_bulk?pretty' --data-binary @shakespeare.json

Invoke-RestMethod "http://localhost:5601/shakespeare/_bulk?pretty" -Method Post -ContentType 'application/x-ndjson' -InFile "shakespeare.json"

But I am getting the error: {"statusCode":404,"error":"Not Found","message":"Not Found"}

I already created the mappings in Kibana and running these commands in the directory where the data is located. Any help would be appreciated.

Hi @ElkLearner115

p
Port 5601 is for kibana you need to load the data into elasticsearch which runs on Port 9200
Also you have an extra -elastic that is incorrect syntax if you want to pass a user name and password but I suspect you have not set that up yet which is fine for learning.

Try this...

curl -H 'Content-Type: application/x-ndjson' -XPOST 'localhost:9200/shakespeare/_bulk?pretty' --data-binary @shakespeare.json

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