Editing Curl https://localhost:9200/ cluster/health/?level=shards

Jump to navigation Jump to search

Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.

Latest revision Your text
Line 2: Line 2:
 
  curl http://localhost:9200/_cluster/health/?level=shards | .jq
 
  curl http://localhost:9200/_cluster/health/?level=shards | .jq
 
  curl http://localhost:9200/_cluster/health/?level=shards | .jq | grep status
 
  curl http://localhost:9200/_cluster/health/?level=shards | .jq | grep status
 
{
 
  "cluster_name": "elasticsearch",
 
  "status": "yellow",
 
  "timed_out": false,
 
  "number_of_nodes": 2,
 
  "number_of_data_nodes": 2,
 
  "active_primary_shards": 14,
 
  "active_shards": 27,
 
  "relocating_shards": 0,
 
  "initializing_shards": 1,
 
  "unassigned_shards": 0,
 
  "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": 96.42857142857143,
 
  "indices": {
 
    "your_indice_name_1": {
 
      "status": "green",
 
      "number_of_shards": 1,
 
      "number_of_replicas": 1,
 
      "active_primary_shards": 1,
 
      "active_shards": 2,
 
      "relocating_shards": 0,
 
      "initializing_shards": 0,
 
      "unassigned_shards": 0,
 
      "shards": {
 
        "0": {
 
          "status": "green",
 
          "primary_active": true,
 
          "active_shards": 2,
 
          "relocating_shards": 0,
 
          "initializing_shards": 0,
 
          "unassigned_shards": 0
 
        }
 
      }
 
    },
 
    "your_indice_name_2": {
 
      "status": "green",
 
      "number_of_shards": 1,
 
      "number_of_replicas": 1,
 
      "active_primary_shards": 1,
 
      "active_shards": 2,
 
      "relocating_shards": 0,
 
      "initializing_shards": 0,
 
      "unassigned_shards": 0,
 
      "shards": {
 
        "0": {
 
          "status": "green",
 
          "primary_active": true,
 
          "active_shards": 2,
 
          "relocating_shards": 0,
 
          "initializing_shards": 0,
 
          "unassigned_shards": 0
 
        }
 
      }
 
    },
 
    "your_indice_name_3": {
 
      "status": "green",
 
      "number_of_shards": 1,
 
      "number_of_replicas": 1,
 
      "active_primary_shards": 1,
 
      "active_shards": 2,
 
      "relocating_shards": 0,
 
      "initializing_shards": 0,
 
      "unassigned_shards": 0,
 
      "shards": {
 
        "0": {
 
          "status": "green",
 
          "primary_active": true,
 
          "active_shards": 2,
 
          "relocating_shards": 0,
 
          "initializing_shards": 0,
 
          "unassigned_shards": 0
 
        }
 
      }
 
    },
 
    "your_indice_name_4": {
 
      "status": "green",
 
      "number_of_shards": 1,
 
      "number_of_replicas": 1,
 
      "active_primary_shards": 1,
 
      "active_shards": 2,
 
      "relocating_shards": 0,
 
      "initializing_shards": 0,
 
      "unassigned_shards": 0,
 
      "shards": {
 
        "0": {
 
          "status": "green",
 
          "primary_active": true,
 
          "active_shards": 2,
 
          "relocating_shards": 0,
 
          "initializing_shards": 0,
 
          "unassigned_shards": 0
 
        }
 
      }
 
    },
 
    "your_indice_name_5": {
 
      "status": "green",
 
      "number_of_shards": 1,
 
      "number_of_replicas": 1,
 
      "active_primary_shards": 1,
 
      "active_shards": 2,
 
      "relocating_shards": 0,
 
      "initializing_shards": 0,
 
      "unassigned_shards": 0,
 
      "shards": {
 
        "0": {
 
          "status": "green",
 
          "primary_active": true,
 
          "active_shards": 2,
 
          "relocating_shards": 0,
 
          "initializing_shards": 0,
 
          "unassigned_shards": 0
 
        }
 
      }
 
    },
 
    "your_indice_name_6": {
 
      "status": "green",
 
      "number_of_shards": 1,
 
      "number_of_replicas": 1,
 
      "active_primary_shards": 1,
 
      "active_shards": 2,
 
      "relocating_shards": 0,
 
      "initializing_shards": 0,
 
      "unassigned_shards": 0,
 
      "shards": {
 
        "0": {
 
          "status": "green",
 
          "primary_active": true,
 
          "active_shards": 2,
 
          "relocating_shards": 0,
 
          "initializing_shards": 0,
 
          "unassigned_shards": 0
 
        }
 
      }
 
    },
 
    "your_indice_name_7": {
 
      "status": "green",
 
      "number_of_shards": 1,
 
      "number_of_replicas": 1,
 
      "active_primary_shards": 1,
 
      "active_shards": 2,
 
      "relocating_shards": 0,
 
      "initializing_shards": 0,
 
      "unassigned_shards": 0,
 
      "shards": {
 
        "0": {
 
          "status": "green",
 
          "primary_active": true,
 
          "active_shards": 2,
 
          "relocating_shards": 0,
 
          "initializing_shards": 0,
 
          "unassigned_shards": 0
 
        }
 
      }
 
    },
 
    "your_indice_name_8": {
 
      "status": "green",
 
      "number_of_shards": 1,
 
      "number_of_replicas": 1,
 
      "active_primary_shards": 1,
 
      "active_shards": 2,
 
      "relocating_shards": 0,
 
      "initializing_shards": 0,
 
      "unassigned_shards": 0,
 
      "shards": {
 
        "0": {
 
          "status": "green",
 
          "primary_active": true,
 
          "active_shards": 2,
 
          "relocating_shards": 0,
 
          "initializing_shards": 0,
 
          "unassigned_shards": 0
 
        }
 
      }
 
    },
 
    "your_indice_name_8": {
 
      "status": "green",
 
      "number_of_shards": 1,
 
      "number_of_replicas": 1,
 
      "active_primary_shards": 1,
 
      "active_shards": 2,
 
      "relocating_shards": 0,
 
      "initializing_shards": 0,
 
      "unassigned_shards": 0,
 
      "shards": {
 
        "0": {
 
          "status": "green",
 
          "primary_active": true,
 
          "active_shards": 2,
 
          "relocating_shards": 0,
 
          "initializing_shards": 0,
 
          "unassigned_shards": 0
 
        }
 
      }
 
    },
 
    "your_indice_name_10": {
 
      "status": "green",
 
      "number_of_shards": 1,
 
      "number_of_replicas": 1,
 
      "active_primary_shards": 1,
 
      "active_shards": 2,
 
      "relocating_shards": 0,
 
      "initializing_shards": 0,
 
      "unassigned_shards": 0,
 
      "shards": {
 
        "0": {
 
          "status": "green",
 
          "primary_active": true,
 
          "active_shards": 2,
 
          "relocating_shards": 0,
 
          "initializing_shards": 0,
 
          "unassigned_shards": 0
 
        }
 
      }
 
    },
 
    "your_indice_name_12": {
 
      "status": "green",
 
      "number_of_shards": 1,
 
      "number_of_replicas": 1,
 
      "active_primary_shards": 1,
 
      "active_shards": 2,
 
      "relocating_shards": 0,
 
      "initializing_shards": 0,
 
      "unassigned_shards": 0,
 
      "shards": {
 
        "0": {
 
          "status": "green",
 
          "primary_active": true,
 
          "active_shards": 2,
 
          "relocating_shards": 0,
 
          "initializing_shards": 0,
 
          "unassigned_shards": 0
 
        }
 
      }
 
    },
 
    "your_indice_name_13": {
 
      "status": "green",
 
      "number_of_shards": 1,
 
      "number_of_replicas": 1,
 
      "active_primary_shards": 1,
 
      "active_shards": 2,
 
      "relocating_shards": 0,
 
      "initializing_shards": 0,
 
      "unassigned_shards": 0,
 
      "shards": {
 
        "0": {
 
          "status": "green",
 
          "primary_active": true,
 
          "active_shards": 2,
 
          "relocating_shards": 0,
 
          "initializing_shards": 0,
 
          "unassigned_shards": 0
 
        }
 
      }
 
    },
 
    "your_indice_name_14": {
 
      "status": "green",
 
      "number_of_shards": 1,
 
      "number_of_replicas": 1,
 
      "active_primary_shards": 1,
 
      "active_shards": 2,
 
      "relocating_shards": 0,
 
      "initializing_shards": 0,
 
      "unassigned_shards": 0,
 
      "shards": {
 
        "0": {
 
          "status": "green",
 
          "primary_active": true,
 
          "active_shards": 2,
 
          "relocating_shards": 0,
 
          "initializing_shards": 0,
 
          "unassigned_shards": 0
 
        }
 
      }
 
    },
 
    "your_indice_name_15": {
 
      "status": "yellow",
 
      "number_of_shards": 1,
 
      "number_of_replicas": 1,
 
      "active_primary_shards": 1,
 
      "active_shards": 1,
 
      "relocating_shards": 0,
 
      "initializing_shards": 1,
 
      "unassigned_shards": 0,
 
      "shards": {
 
        "0": {
 
          "status": "yellow",
 
          "primary_active": true,
 
          "active_shards": 1,
 
          "relocating_shards": 0,
 
          "initializing_shards": 1,
 
          "unassigned_shards": 0
 
        }
 
      }
 
    }
 
  }
 
}
 
 
  
 
== See also ==
 
== See also ==

Please note that all contributions to wikieduonline may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see Wikieduonline:Copyrights for details). Do not submit copyrighted work without permission!

Cancel Editing help (opens in new window)

Advertising: