Connecting to Elasticsearch
This article explains how to connect Dataedo to Elasticsearch and import metadata - indexes and fields.
Importing Metadata in Dataedo Portal
Entry point
To start the Metadata Import flow, make sure you have the Connection Manager role. Go to Connections and click Add connection, then pick Elasticsearch from the connector list to open the import wizard described in the following steps.

Step 1. Host details
Provide the name of the Connection, an optional description, and the details of the Elasticsearch cluster:
- Connection type - whether the cluster is
On-premiseor hosted in Elastic Cloud. - Host - the address of the instance, for example
elasticsearch-logs.internal. - Port - the HTTP port of the cluster,
9200by default.
A Connection in Dataedo represents a saved configuration for accessing a data source.
It can be reused for future imports and scheduling.

Advanced settings is optional — you can leave it collapsed and the connection will run on any available agent with the global timeouts. Expand it if you want to restrict the connection to a specific agent or override the task timeouts.
Step 2. Credentials
Choose credentials from the list of existing ones available for the selected connector, or add new credentials.

Step 3. Data Sources
During one import you can read the metadata of up to 20 data sources. You can reuse the same connection to import more sources later.
- Portal displays all clusters accessible with the provided credentials
- you can select multiple sources at once and use the search box to narrow down results
- each selected source should be given a Display name, which will be visible in Dataedo

Step 4. Objects to import
Elasticsearch exposes a single object type - Search Indexes. The count shows as Unknown until the import runs.

Use Advanced filters to include or exclude indexes by name pattern instead.

Step 5. Schedule
Configure the Metadata Import task for each source individually:
- choose the metadata extraction options (
Append only,Reimport all included objects) - run daily, on selected weekdays, or on specific days of the month
- choose an exact time of execution
- Task state:
Active- the task will run as scheduledDraft- the task is saved but not executed until you switch it to Active
- Run Immediately - when checked, the task will also be executed right after you click
Create connection
Only one source in a metadata import can have Run Immediately selected.

Once saved, the task appears next to its source in the schedule list.

You must configure at least one import task for every data source.
If you skip this, an empty database will be created and no metadata will be imported.
Importing Metadata in Dataedo Desktop
Add new connection
To connect to an Elasticsearch 7 instance, create new documentation by clicking Add and choosing Database connection.

Connection details
On the Add documentation screen, choose Elasticsearch.

On the next screen, select Connection Type:
- Elasticsearch - when using the on-prem version of Elasticsearch.
- Elasticsearch cloud - when using the cloud version of Elasticsearch.
When selected Elasticsearch:
- Host - provide a host name or address where the database is located. E.g. http://server17, http://server17.ourdomain.com or http://192.168.0.37.
- Port - port on which your database is available. Do not change it unless you are sure that it is not the default 9200.
- User and password - if authentication is required for connection, provide your username and password. Both fields are optional.
- When Elasticsearch has configured SSL, check the CA Fingerprint checkbox and provide the CA fingerprint.

When selected Elasticsearch cloud:
There are two types of authentication:
- Username and password
- API key
When selected username and password authentication type:
- Cloud ID - provide the Cloud ID, which can be found in the Elasticsearch Service web console.
- User and password - if authentication is required for connection, provide your username and password. Both fields are optional.

When selected API key authentication type:
- Cloud ID - provide the Cloud ID, which can be found in the Elasticsearch Service web console.
- API key - provide the API key, which can be found in the Elasticsearch Service web console.

Saving password
You can save the password for later connections by checking the Save password option. Passwords are saved in the repository database.
Importing indexes
When the connection is successful, Dataedo will read objects and show a list of objects found. You can choose which objects to import. You can also use advanced filter to narrow down the list of objects.
Confirm the list of objects to import by clicking Next.

The next screen allows you to change the name of the documentation under which it will be visible in the Dataedo repository.

Click Import to start the import.

When done, close the import window with the Finish button.

Output
Your Elasticsearch metadata has been imported to new documentation in the repository.