Support of X-Pack for Elasticsearch

Composer allows you to connect to your Elasticsearch cluster and data set secured by X-Pack.

X-Pack is an add-on offering for Elasticsearch that aims at securing the data on your cluster. Learn more about X-Pack.

Configure Cluster or Index Privileges for a User

To connect to the Elasticsearch cluster, you need to create an Elasticsearch user and configure the access privileges for this user.

The access permissions for the Elasticsearch user determine the scope of the data available for querying by Composer users.

To work with Elasticsearch data, use X-Pack to grant the following minimal access privileges to the Elasticsearch user:

After the Elasticsearch user permissions are configured, you can proceed with connecting to a data source.

Adde Libraries Required to Connect Using a Transport Protocol

Composer extracts specific libraries needed to support secured connections to Elasticsearch clusters over a transport protocol. The Composer Elasticsearch connector starts and works normally without these libraries, except when you want to use secured transport connections. To use secured transport connections, you must download and enable these libraries. If you attempt to establish a secured transport connection to an Elasticsearch cluster without the required libraries, an error will occur when you try to validate the connection.

To download and enable the transport-required libraries:

  1. Download the required libraries to /usr/local/share/java/zoomdata/edc-elasticsearch-<x.x>/, where <x.x> is the version of Elasticsearch.

    mkdir -p /usr/local/share/java/zoomdata/edc-elasticsearch-<x.x>
    wget -P /usr/local/share/java/zoomdata/edc-elasticsearch-<x.x> <library URL>

    The following table provides a list of the required libraries for each supported Elasticsearch version, with URLs:

    Composer Connector Library Name Version License URL
    Elasticsearch 6.0 org.elasticsearch.client:x-pack-transport 6.0.0 Commercial Software End User License Agreement (
    com.unboundid:unboundid-ldapsdk 3.2.0 GPLv2, LGPLv2.1, or UnboundID Free Use License (
    Elasticsearch 7.0 org.elasticsearch.client:x-pack-transport 7.0.0 Commercial Software End User License Agreement (
    com.unboundid:unboundid-ldapsdk 3.2.0 GPLv2, LGPLv2.1, or UnboundID Free Use License (

    For example:

    mkdir -p /usr/local/share/java/zoomdata/edc-elasticsearch-6.0
    wget -P /usr/local/share/java/zoomdata/edc-elasticsearch-6.0 wget -P /usr/local/share/java/zoomdata/edc-elasticsearch-6.0 wget -P /usr/local/share/java/zoomdata/edc-elasticsearch-6.0
  2. Update the datasource.driver-config.jar-path property value in the appropriate Elasticsearch connector property file to point to the directory path containing all the libraries you downloaded or to a comma-separated list combining all library paths. For example:




    See Connector Properties and Property Files to determine the correct Elasticsearch property file to use and where to save it.

    Composer discourages changing properties in the /opt/zoomdata/conf directory. Instead we recommend that you copy the files you want to change to the /etc/zoomdata directory and change them there. This will ensure that your changes are not overwritten when Composer is next upgraded. In addition, you can quickly determine what changes you've made to a properties file using diff. For example:

    diff /opt/zoomdata/conf/edc-<connector-name>.properties /etc/zoomdata/<edc-<connector-name>.properties


    diff /opt/zoomdata/conf/ /etc/zoomdata/
  3. Restart the Elasticsearch connector microservice. For example:

    sudo systemctl restart zoomdata-edc-elasticsearch-6.0

Connection Via HTTP or Transport Protocol and Using SSL

You can connect to your Elasticsearch cluster using either HTTP or transport protocols. SSL is optional for the HTTP connection but is required for transport connections when connecting to an X-Pack secured Elasticsearch cluster.