×
Community Blog How to Create an Alibaba Cloud Elasticsearch Cluster and Log on to the Kibana Console

How to Create an Alibaba Cloud Elasticsearch Cluster and Log on to the Kibana Console

This tutorial explains how to create an Alibaba Cloud Elasticsearch cluster and log on to the Kibana console.

Introduction

This tutorial leads you to create an Alibaba Cloud Elasticsearch cluster and log on to the Kibana console.

Alibaba Cloud Elasticsearch is based on the open-source Elasticsearch and is designed for search and analytics scenarios. It supports enterprise-level access control, security monitoring, and automatic updates.

Alibaba Cloud Elasticsearch is compatible with the open-source Elasticsearch. It optimizes kernel performance, and provides commercial features (formerly X-Pack) that are out-of-the-box (OFTB), highly available, and scalable.

For more information, see What is Alibaba Cloud Elasticsearch.

What Can I Learn from the Tutorial?

  • How to create and access an Alibaba Cloud Elasticsearch cluster
  • How to configure a public IP address whitelist for Kibana and log on to the Kibana console
  • How to add sample data

Prepare Environment and Resources

To prepare the environment and resources, follow these steps before starting the tutorial:

1.  Go to the Alibaba Cloud Free Tier page. In the upper-right corner of the page, click Free Account. Then Log In to use your existing Alibaba Cloud account or create an Alibaba Cloud account for logon.

2.  After the logon, select Analytics Computing in the product categories that are displayed in the All Free Tier Products Available section of the Alibaba Cloud Free Tier page. Then, click Try Now in the Elasticsearch card.

3.  In the panel that appears, configure the parameters for the Elasticsearch cluster. For this tutorial, configure the parameters that are described in the following table. For other parameters, retain the default values or change the values based on your business requirements.

Parameter Configuration
Region Select Singapore.
Zone Select Singapore Zone C.
VPC Select the virtual private cloud (VPC) that you created. If no VPCs are available, create a VPC by referring to Create and manage a VPC.
VSwitch Select the vSwitch that you created. If no vSwitches are available, create a vSwitch by referring to Create and manage a vSwitch.
Resource Group Select the resource group that you created. You can also select the default resource group. If no resource groups are available, create a resource group by referring to Create a resource group.
Instance Type The value of this parameter is fixed as X-Pack Version.
Version Select 8.5.
In this tutorial, an Elasticsearch V8.5 cluster is used. Operations on and examples for Elasticsearch clusters of other versions may differ. For more information, see Getting Started.
Data Node Type Select 2 vCPUs, 4 GiB Memory.
Data Nodes Set this parameter to 3.
Data Node Disk Type Select Ultra Disk.
Data Node Storage Space Set this parameter to 20 GB.
Kibana Node Type Select 2C 4GB.
Username The value of this parameter is fixed as elastic.
Password Specify a password based on your business requirements.

4.  Click Buy Now. On the page that appears, read and agree to the Terms of Service, and click Pay.

5.  Then, log on to the Alibaba Cloud Management Console as prompted. In the upper-left corner of the page that appears, click the More icon and choose Products and Services > Analytics Computing > Elasticsearch.

6.  In the left-side navigation pane of the Elasticsearch console, click Elasticsearch Clusters.

7.  In the top navigation bar, select the region in which the Elasticsearch cluster resides. For this tutorial, select Singapore. On the Elasticsearch Clusters page, find the Elasticsearch cluster and view the status of the cluster. The Elasticsearch cluster takes effect about 5 minutes after it is created. You can proceed to subsequent operations only after the Elasticsearch cluster takes effect and enters the Active state.

Access the Elasticsearch Cluster

1.  On the Elasticsearch Clusters page, find the Elasticsearch cluster and click the cluster ID.

2.  In the left-side navigation pane of the page that appears, choose Configuration and Management > Data Visualization.

3.  In the Kibana section, click Edit Configuration. On the page that appears, configure a public IP address whitelist for Kibana.

  • In the Network Access Configuration section of the page that appears, click Update to the right of Kibana Whitelist.
  • In the Modify Public Network Whitelist panel, click Configure to the right of default.
  • In the Add IP Address Whitelist dialog box, remove the default IP address from the default whitelist, and add the public IP address of the device that you want to use to access the Elasticsearch cluster to the default whitelist. The default IP address in the default whitelist indicates that access from all IP addresses are denied. The method used to obtain the public IP address of an on-premises machine may vary based on the network environment in which the machine resides and the operations that you need to perform. You can refer to the following methods to obtain the public IP address of the on-premises machine that you use:

    • Linux: Open the CLI, enter the curl ifconfig.me command, and then press Enter.
    • Windows: Open Command Prompt, enter the curl ip.me command, and then press Enter.
    • macOS: Start Terminal, enter the curl ifconfig.me command, and then press Enter.
  • Click OK. If the public IP address that you added is displayed in the whitelist, the configuration is successful.

4.  Return to the Data Visualization page. In the Kibana section, click Access over Internet.

5.  On the page that appears, enter the username elastic and the password that you specified when you create the Elasticsearch cluster. Then, click Log in.

6.  On the Welcome to Elastic page, click Explore on my own.

Add Sample Data

1.  On the homepage of the Kibana console, click Try sample data in the Get started by adding integrations section.

1

2.  In the More ways to add data section, click Other sample data sets.

2

3.  Click Add Data below the Sample flight data and Sample eCommerce orders datasets, respectively.

3

When Add Data changes to View Data, the dataset is added.

Finishing

After you complete the preceding steps, you have created an Elasticsearch cluster and logged on to the Kibana console to add sample data. On the homepage of the Kibana console, click the icon icon in the upper-left corner and select Analytics > Discover. In this case, you can see the existing Kibana Sample Data Flights and Kibana Sample data eCommerce datasets in the upper-left data view.

4

Cleanup and Follow-Up

Cleanup

Resources that are charged based on the subscription billing method have validity periods. After the validity periods elapse, the resources are automatically released. After you complete the tutorial, you can refer to the following instructions to process the resources:

● If you no longer require the test data and resources used in the tutorial, you can delete them.

· Delete the index.
On the Console tab of the Kibana console, run the following command to delete the index to prevent resource wastes. The deleted index cannot be recovered. Therefore, before you delete the index, you must make sure that the delete operation does not affect your business.

DELETE /product_info

If the preceding command is successfully run, the following result is returned:

{
  "acknowledged" : true
}

· Delete the VPC.
For more information, see Delete a VPC.

● If you still require the Elasticsearch cluster, you can renew the cluster before it expires or renew the cluster within seven days after it expires. For more information, see Renew a cluster. If the Elasticsearch cluster is not renewed, the system will release the cluster seven days after the cluster expires. In this case, data stored in the Elasticsearch cluster will be permanently deleted and cannot be recovered.

Follow-Up

After creating the cluster, you can explore other trial tutorials for Alibaba Cloud Elasticsearch. This will allow you to experience the data query and visualization capabilities of Kibana Discover, as well as the basic search functionality of Alibaba Cloud Elasticsearch.

0 0 0
Share on

Data Geek

9 posts | 0 followers

You may also like

Comments

Data Geek

9 posts | 0 followers

Related Products