> ## Documentation Index
> Fetch the complete documentation index at: https://docs.streamkap.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Elasticsearch

> Elasticsearch Change Data Capture Setup with Streamkap

## Prerequisites

* Elasticsearch cluster connection details
* A database user with sufficient privileges to read from indices

## Elasticsearch Setup

### 1. Grant Database Access

* Configure one of the [Connection Options](/connection-options) to ensure Streamkap can reach your Elasticsearch cluster.

### 2. Create Database User

* Create a user and password for Streamkap with read access to the indices you want to capture.

***

## Streamkap Setup

Follow these steps to configure your new connector:

### 1. Create the Source

* Navigate to [Add Connectors](https://app.streamkap.com/connectors/add?tab=Sources).
* Choose **Elasticsearch**.

### 2. Connection Settings

* **Name**: Enter a name for your connector.

* **Hostname**: Specify the Elasticsearch cluster hostname.

* **Port**: Default is `443` for HTTPS.

* **Protocol**: Select HTTPS or HTTP.

* **Authentication Type**: Select the authentication method.

  * For **Basic** authentication:
    * **Username**: The Elasticsearch user.
    * **Password**: The user's password.

### 3. Index Capture

* **Index names**: Specify the index(es) to capture.

* **Datetime Field name**: The field used to track changes (e.g. `@timestamp`).

Click **Save**.
