Elasticsearch Learning Elasticsearch with kibana Explore your Cluster using Kibana


Example

The command syntax will be of the following type:

<REST Verb> /<Index>/<Type>/<ID>

Execute the following command to explore elasticsearch cluster through Kibana Console.

  • For checking the cluster health
GET /_cat/health?v
  • For listing all the indices
GET /_cat/indices?v
  • For creating an index with name car
 PUT /car?pretty
  • For indexing the document with name car of external type using id 1
PUT /car/external/1?pretty
{
  "name": "Tata Nexon"
}

the response of above query will be :

{
  "_index": "car",
  "_type": "external",
  "_id": "1",
  "_version": 1,
  "result": "created",
  "_shards": {
    "total": 2,
    "successful": 1,
    "failed": 0
  },
  "created": true
}
  • retrieving the above document can be done using:
GET /car/external/1?pretty
  • For deleting an index
DELETE /car?pretty