Create a local user in superuser role for Elasticsearch external access.
Here are the steps to do so:
1. Log in as the Vault Service Account and open a CMD prompt as Administrator
2. In the CMD window change directories: cd <EV Install Location>\Services\Elasticsearch\bin
3. Set ES_JAVA_HOME to a location of JDK. Since 14.2, it will be under <EV Install Location>\Services\JDK
set ES_JAVA_HOME=..\JDK\
In case you get an error, as below
\Enterprise was unexpected at this time.
Please copy JDK folder from below path <EV Install Location>\Services\Services to<EV Install Location>\Services\Elasticsearch\bin
4. Next specify user name and password to be set as superuser. For example:
elasticsearch-users useradd testuser -p testuser -r superuser
5. Restart the Enterprise Vault Indexing service and then access the endpoint in a browser window http://localhost:<portnumber> (Default port number is 9200, however it can be changed in the Console under Properties of the EV server name. Go to Advanced tab > Indexing > Elasticsearch ports range)
6. Once information has been gathered, delete the user using the following command:
elasticsearch-users userdel testuser
Note: If your EV Site is using HTTPS then you will need to update the URLs below.
Purpose | Actual Usage | Comments | |
|---|---|---|---|
| 1 | To check basic details of Elasticsearch cluster | http://localhost:9200 | Use Chrome or Firefox browser to hit these rest APIs |
| 2 | To get health status of Elasticsearch cluster | http://localhost:9200/_cat/health?v=true&ts=false | |
| 3 | To get health status of node involved in Elasticsearch cluster | http://localhost:9200/_cat/nodes?v=true | |
| 4 | To check Elasticsearch indices details including health and document count | http://localhost:9200/_cat/indices?v | |
| 5 | To check alias list (EV Index Volumes) associated with Elasticsearch index | http://localhost:9200/_cat/aliases?v | |
| 6 | To check Elasticsearch shards details which are belonging to all Elasticsearch indices | http://localhost:9200/_cat/shards?v | |
| 7 | To check Elasticsearch shards details which are belonging to specific Elasticsearch index | http://localhost:9200/_cat/shards/?v | |
| 8 | To get registered snapshot repositories for Elasticsearch cluster | http://localhost:9200/_cat/repositories?v=true | |
| 9 | To get list of snapshots taken for Elasticsearch cluster | http://localhost:9200/_cat/snapshots/?v=true&s=id |
How to access Elasticsearch endpoint for Enterprise Vault 14.2 and higher
Feedback submitted!