Difference between revisions of "Curl https://localhost:9200/ cluster/health"

From wikieduonline
Jump to navigation Jump to search
(Created page with "{{lc}} == See also == * {{Elasticsearch}} Category:ELK Category:Elasticsearch")
 
 
(4 intermediate revisions by one other user not shown)
Line 1: Line 1:
 
{{lc}}
 
{{lc}}
 +
curl https://localhost:9200/_cluster/health | [[jq .]]
 +
curl https://localhost:9200/_cluster/health | [[jq .]] | grep status
  
 
+
curl https://localhost:9200/_cluster/health | [[jq .]]
 +
{
 +
  "cluster_name": "elasticsearch",
 +
  "status": "[[yellow]]",
 +
  "timed_out": false,
 +
  "number_of_nodes": 2,
 +
  "number_of_data_nodes": 2,
 +
  "active_primary_shards": 14,
 +
  "active_shards": 14,
 +
  "relocating_shards": 0,
 +
  "initializing_shards": 0,
 +
  "unassigned_shards": 14,
 +
  "delayed_unassigned_shards": 0,
 +
  "number_of_pending_tasks": 0,
 +
  "number_of_in_flight_fetch": 0,
 +
  "task_max_waiting_in_queue_millis": 0,
 +
  "active_shards_percent_as_number": 50
 +
}
  
  

Latest revision as of 04:17, 20 October 2022

curl https://localhost:9200/_cluster/health | jq .
curl https://localhost:9200/_cluster/health | jq . | grep status
curl https://localhost:9200/_cluster/health | jq .
{
  "cluster_name": "elasticsearch",
  "status": "yellow",
  "timed_out": false,
  "number_of_nodes": 2,
  "number_of_data_nodes": 2,
  "active_primary_shards": 14,
  "active_shards": 14,
  "relocating_shards": 0,
  "initializing_shards": 0,
  "unassigned_shards": 14,
  "delayed_unassigned_shards": 0,
  "number_of_pending_tasks": 0,
  "number_of_in_flight_fetch": 0,
  "task_max_waiting_in_queue_millis": 0,
  "active_shards_percent_as_number": 50
}


See also[edit]

Advertising: