How to Check Elasticsearch Version?

check elasticsearch version

To check the version of Elasticsearch you are running, you can use the following steps:

  1. Open a command line interface or terminal window.
  2. Run the following command to make an API call to the Elasticsearch cluster:
curl -X GET "localhost:9200/"

Note: Replace “localhost” with the hostname or IP address of your Elasticsearch cluster if you are accessing it from a remote machine.

3. The response will be a JSON object that includes information about the cluster, including the version number of Elasticsearch. Look for the “version” field in the response, like this:

"name" : "node-1",
"cluster_name" : "elasticsearch",
"cluster_uuid" : "zYxWvUtR-TPK6ZrdV_lPXg",
"version" : {
"number" : "7.10.0",
"build_flavor" : "default",
"build_type" : "deb",
"build_hash" : "ef48eb35cf30adf4db14086e8aabd07ef6fb113f",
"build_date" : "2021-07-20T05:20:23.451332Z",
"build_snapshot" : false,
"lucene_version" : "8.7.0",
"minimum_wire_compatibility_version" : "6.8.0",
"minimum_index_compatibility_version" : "6.0.0-beta1"

In this example, the version of Elasticsearch is 7.10.0.

Also Read This ๐Ÿ‘‰   Laravel JSON Encode Decode Handling