Documentation
Search results

ElasticSearch

ElasticSearch is a distributed, RESTful search and analytics engine designed for handling a variety of data types, such as logs, metrics, search indexes, and application monitoring datasets. It is commonly used for real-time search, logging, analytics dashboards, and large-scale data ingestion.

Grab Credentials

To connect to ElasticSearch through Bold Data Hub, you must gather the required authentication details. ElasticSearch supports both API Key Authentication and Username/Password (Basic Auth) depending on how your cluster is configured.

Steps to obtain connection details

  1. Host & Port
    • For Elastic Cloud deployments, the host URL is provided in the cluster dashboard.
    • The port is usually 9200, unless otherwise configured.
  2. API Key Authentication
    • Open the Elastic Cloud Console. Elastic search Data Hub - BoldBI
    • Navigate to Management > security > API Keys.
    • Click Create API Key.
    • Provide a suitable name (e.g., boldbi-access-key).
    • Copy the generated API Key and store it securely.
  3. Username/Password
    • Default username in Elastic Cloud is: elastic.
    • Reset or copy the password from Elastic Cloud under Security Settings.

Connection Properties

The config section in the YAML file accepts the following properties:

ConnectorName: ElasticSearch
host: hostname
port: 9200
api_key: api_key
username: user
password: password
index_name: <indexname>
page_size: 10000

Example Configuration

version: 1.0.1
encrypt_credentials: false
direct_target_import: false
union_all_tables: true
add_dbname_column: false
direct_load_to_destination: true
use_snake_casing: true
set_not_null_as_primary_key: false
plugins:
  extractors:
    - name: es
      connectorname: ElasticSearch
      schemaname: 
      config:
        host: https://e7024573e1574eaf8f2677593082e16e9.us-central1.gcp.cloud.es.io
        port: 443
        # Authentication (use either API Key OR Username & Password)
        api_key: essu_VG5SVWVUSTFjMEowUmxKQ01GZHB0OMjVuZDJvNlZVaDVTSE0zWlRCS2FIVnRhMFl5U210amRHdDJkdz09AAAAAPLMXaY=
        # username: elastic
        # password: password@123
        index_name: index
        page_size: 10000
      properties: 
      metadata: 
      select:

Configure the Data Hub to Connect ElasticSearch

  1. Click the Bold Data Hub icon from the left navigation panel.

Elastic search Data Hub - BoldBI

  1. Click Add Pipeline and enter a name for your new pipeline.

    Elastic search Data Hub - BoldBI

  2. Select the newly created pipeline and add the ElasticSearch template.

elastic search Data Hub - BoldBI

  1. Enter the ElasticSearch connection and authentication details.

    • Host - ElasticSearch host URL.
    • Port - Port number of the ElasticSearch server.
    • Index Name – Name of the ElasticSearch index.
    • Authentication – Configure either one of the following:
      • API Key
      • Username and Password

    Note: If both API Key and Username/Password are provided, the Username/Password will be used.

  2. Creating a Pipeline in Bold Data Hub automatically creates a Data Source in Bold BI. The Bold BI Data Source is a live data source to the destination database used in Bold Data Hub. For more information on the relationship between Bold Data Hub Pipeline and the associated Data Sources in Bold BI , please refer to Relationship between Bold Data Hub Pipeline and Associated Data Sources in Bold BI

Click Save, then choose the destination database.

Elastic Search - Data Hub

Warning:

1. The `Encrypt_Credentials` property should be set to false when updating the new access token on the template. If you have modified other properties, such as 'select' or 'account id', the `Encrypt_Credentials` property must be set to true.

Schedule Data Hub Job

  1. To configure interval-based scheduling, click on the schedules tab and select the created pipeline and click on the schedule icon and configure it.

Elastic Search - BoldBI

Elastic Search - BoldBI

  1. For on-demand refresh, click Run Now button.

Elastic Search - BoldBI.

  1. The Schedule history can be checked using the history option as well as logs.

Elastic Search - BoldBI

  1. Click on Logs to see if the run is completed and data source is created in Bold BI.

Elastic search - BoldBI

  1. Click Edit DataSource Option to view the created tables.