AI Hints
Home›Elasticsearch Tutorial›Kibana and Your First Requests
Elasticsearch · Lesson 7 of 120

Kibana Dev Tools

A console for requests.

⏱ 2 min read▶ Video at 6:04🎓 Free
Watch this lesson in the Elasticsearch courseWatch on YouTube ↗Full Elasticsearch course

You could talk to Elasticsearch with curl in a terminal. But most people use Kibana, the web app that comes with it. Its Dev Tools console is a friendly place to write requests and read the answers.

  • curl works
  • Kibana is easier
  • Dev Tools console

Start Kibana

Kibana also runs in Docker. Link it to the Elasticsearch container, and open port fifty six oh one. Then visit localhost, port fifty six oh one, in your browser, and open Dev Tools from the menu.

Terminalbash
docker run -d --name kibana \
  --link elasticsearch \
  -p 5601:5601 \
  -e ELASTICSEARCH_HOSTS=http://elasticsearch:9200 \
  kibana:9.5.5

How a request looks

Each request starts with a method, like GET or PUT, then a path. If it needs a body, the JSON goes on the next lines. A line starting with a hash is a comment. You can write many requests, and send the one under your cursor.

Dev Tools Consoletext
# Get one product
GET products/_doc/1

# Search for tents
GET products/_search
{
  "query": { "match": { "name": "tent" } }
}

Summary

Kibana's Dev Tools console lets you write a method, a path and a JSON body, then send it. That's how we'll talk to Elasticsearch. Next, your first real requests.

Key takeaways
  • Method + path
  • JSON body
  • Send
Next up: Your First Request — store it, find it