How to access Elasticsearch endpoint for Enterprise Vault 14.2 and higher

book

Article ID: 100058773

calendar_today

Updated On:

Description

How to access Elasticsearch endpoint.

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

Elasticsearch REST APIs

Note: If your EV Site is using HTTPS then you will need to update the URLs below.

 

Purpose

Actual Usage

Comments

1To check basic details of Elasticsearch cluster

http://localhost:9200

Use Chrome or Firefox browser to hit these rest APIs
2To get health status of Elasticsearch cluster

http://localhost:9200/_cat/health?v=true&ts=false

 
3To get health status of node involved in Elasticsearch clusterhttp://localhost:9200/_cat/nodes?v=true 
4To check Elasticsearch indices details including health and document counthttp://localhost:9200/_cat/indices?v 
5To check alias list (EV Index Volumes) associated with Elasticsearch indexhttp://localhost:9200/_cat/aliases?v 
6To check Elasticsearch shards details which are belonging to all Elasticsearch indiceshttp://localhost:9200/_cat/shards?v 
7To check Elasticsearch shards details which are belonging to specific Elasticsearch indexhttp://localhost:9200/_cat/shards/?v 
8To get registered snapshot repositories for Elasticsearch clusterhttp://localhost:9200/_cat/repositories?v=true 
9To get list of snapshots taken for Elasticsearch cluster

http://localhost:9200/_cat/snapshots/?v=true&s=id

 

 

Issue/Introduction

How to access Elasticsearch endpoint for Enterprise Vault 14.2 and higher