Create a Deployment: Elasticsearch Cluster and Kibana instance

edit

Create a Deployment: Elasticsearch Cluster and Kibana instance

edit

In the below example we will create a deployment that includes both an Elasticsearch cluster and a Kibana instance. This will allow you to also use Kibana to create visualizations dashboards, etc.

curl -k -X POST -u USER:PASSWORD https://COORDINATOR_HOST:12443/api/v1/clusters/elasticsearch -H 'content-type: application/json' -d '{
   "cluster_name" : "My First elasticsearch and kibana Deployment",
   "plan" : {
   		"elasticsearch" : {
        	"version" : "7.0.1"
            },
      "cluster_topology" : [
        {
            "memory_per_node" : 2048,
            "node_count_per_zone" : 1,
            "node_type" : {
               "data" : true,
               "ingest" : true,
               "master" : true,
               "ml" : true
            },
            "zone_count" : 1
         }
        ]
    },
    "kibana" : {
      "cluster_name" : "My First elasticsearch and kibana Deployment",
      "plan" : {
        "cluster_topology" : [
          {
            "instance_configuration_id" : "kibana",
            "memory_per_node" : 1024,
            "node_count_per_zone" : 1,
            "zone_count" : 1
          }
        ],
        "kibana" : {
         "version" : "7.0.1"
	}
      }
    }
}'

After the API call completes, Elastic Cloud Enterprise will again return Elasticsearch cluster ID and this time also Kibana ID along with the password for the elastic superuser. Write this information down and keep it somewhere safe.

{
  "elasticsearch_cluster_id": "$ELASTICSEARCH_CLUSTER_ID",
  "kibana_cluster_id": "$KIBANA_CLUSTER_ID",
  "credentials": {
    "username": "elastic",
    "password": "$PASSWORD"
  }
}

Kibana will be available at the following endpoint https://KIBANA_CLUSTER_ID.ECE_CNAME:9243/ and you can use the elastic user and returned random password when you first login.