elasticsearchHow do I determine which version of Elasticsearch I am using?
To determine which version of Elasticsearch you are using, you can use the Elasticsearch API. To do this, you can use the following GET request:
GET _cat/nodes?v
The output of this request will look like this:
ip heap.percent ram.percent cpu load_1m load_5m load_15m node.role master name
127.0.0.1 24 65 1 0.14 0.18 0.20 mdi - node1
127.0.0.2 24 65 1 0.14 0.18 0.20 mdi * node2
The name column in the output shows the version of Elasticsearch you are running. In this example, it is node1 and node2.
You can also use the version API endpoint to check the version of Elasticsearch you are running. This endpoint will return the full version number, such as 7.8.1. To do this, you can use the following GET request:
GET _cat/version
The output of this request will look like this:
7.8.1
The output is the full version number of Elasticsearch you are running.
Helpful links
More of Elasticsearch
- How do I configure elasticsearch xpack.security.transport.ssl?
- How can I use elasticsearch zone awareness to improve my software development?
- How can I use Elasticsearch and Zabbix together for software development?
- How do I configure xpack.security.authc.realms in Elasticsearch?
- How can I use YouTube to learn about Elasticsearch?
- How can I use Yandex Mirror to access Elasticsearch data?
- How do I configure the Xms and Xmx settings for Elasticsearch?
- How can I use the cat indices API in Elasticsearch?
- How can I set up and use Elasticsearch on the Yandex Cloud platform?
See more codes...