# Elasticsearch

UI Bakery allows you to easily connect to an Elasticsearch database with no need for additional layers like APIs or third-party services.

## Configuration

### Prerequisites

If your database is hosted behind a Firewall, you need to add our [IP addresses](https://docs.uibakery.io/concepts/data-sources#whitelisting-ip-addresses) to the Firewall whitelist.

### Connecting the data source

Now, to connect your data source, follow the steps below:

1. On the **Data sources** page, click **Connect**, and select *Elasticsearch* in the Data sources list.
2. Specify the required credentials:
   1. *URL* - copy from your Elasticsearch project.
   2. Select the preferred authentication settings - *Basic Auth* or *API Key*. \
      You can copy the API Key from your project as well, it will be generated once you register.
3. Finally, click **Test connection** to check whether the data source can be connected, and then click **Connect Datasource** to complete the setup.

<figure><img src="https://837703843-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FUX6zPRMFFK0yrTghj7cY%2Fuploads%2F32F8c00KnNKYdVz9uwrz%2FCleanShot%202025-06-19%20at%2016.24.10%402x-min.png?alt=media&#x26;token=cef065fc-5d68-4b41-88cb-3c9de1921742" alt=""><figcaption></figcaption></figure>

## Usage

Once you have established the connection between UI Bakery and Elasticsearch, you can access its data - load it and send it back.&#x20;

UI Bakery supports the [Elasticsearch Command](https://docs.uibakery.io/reference/working-with-actions/elasticsearch-command) action step for this data source.
