Create a Elasticsearch Connection

White Label Data allows you to use Elasticsearch as a database and to map search results to native White Label Data visualizations. In order to use Elasticsearch, you must first set up a connection in White Label Data.

Example appconfig.json:

 "connections" : [
            "type": "elasticsearch",
            "host" : "",
            "username" : "myusername",
            "port" : 9200,
            "scheme": "http",
            "env_var": "ELASTICSEARCH_SECRET"
Option Example Description
host "" DNS name or IP address of the Elasticsearch.
username "myusername" The username to connect to Elasticsearch.
port 9200 Port to connect to Elasticsearch.
scheme "http" Connection scheme. Either "http" or "https".
roles [" myrole ", "myotherrole" ] Optional. A list of roles to use when connecting to Open Distro Elasticsearch.
env_var "ELASTICSEARCH_SECRET" Name of environment variable that will hold the Elasticsearch Secret. The secret is a JSON Web Token (JWT). When using Kibana, you will need the x-pack or with Open Distro Elasticsearch you need to configure using the security configuration.

Note: You must also add this environment variable to your environment settings for your instance. See “Adding connection environment variables to your local development environment” here.