elasticsearchHow do I get the version of Elasticsearch I am using?
To get the version of the Elasticsearch you are using, you can use the cat
API. This API allows you to retrieve the version information about the Elasticsearch instance.
Example
curl -XGET 'localhost:9200'
Output example
{
"name" : "elasticsearch-node",
"cluster_name" : "elasticsearch",
"cluster_uuid" : "v-HlwfvVQbq7KjE_zVfQ",
"version" : {
"number" : "7.3.2",
"build_flavor" : "default",
"build_type" : "tar",
"build_hash" : "e9ccaed468e2fac2275a3761849cbee64b39519f",
"build_date" : "2019-09-06T14:40:30.409026Z",
"build_snapshot" : false,
"lucene_version" : "8.2.0",
"minimum_wire_compatibility_version" : "6.8.0",
"minimum_index_compatibility_version" : "6.0.0-beta1"
},
"tagline" : "You Know, for Search"
}
In the output, the version of the Elasticsearch instance is 7.3.2
.
Code explanation
curl -XGET 'localhost:9200'
- Retrieves the version information about the Elasticsearch instance.
Helpful links
More of Elasticsearch
- How can I use elasticsearch zone awareness to improve my software development?
- How can I use Elasticsearch with Zammad?
- How do I set up an Elasticsearch Yum repository?
- How can I use Elasticsearch to diagnose "yellow" issues?
- How can I use YouTube to learn about Elasticsearch?
- How can I set up and use Elasticsearch on the Yandex Cloud platform?
- How can I get started with using Elasticsearch OSS?
- How do I use ElasticSearch to zip files?
- What hardware do I need to run Elasticsearch?
- How can I use Elasticsearch and ZFS together?
See more codes...