This topic describes how to enable the X-Pack Monitoring feature to monitor your Alibaba Cloud Logstash cluster. After you enable it for your Logstash cluster and associate the cluster with an Elasticsearch cluster, you can monitor the Logstash cluster in the Kibana console of the Elasticsearch cluster.

Prerequisites

Procedure

  1. Log on to the Alibaba Cloud Elasticsearch console.
  2. In the top navigation bar, select the region where your cluster resides.
  3. In the left-side navigation pane, click Logstash Clusters. On the page that appears, find the target cluster and click its ID in the Cluster ID/Name column.
  4. In the left-side navigation pane, click Cluster Monitoring.
  5. In the Monitoring and Alerting section, click Edit next to X-Pack Monitoring.
    Enable X-Pack Monitoring
  6. In the Edit Configuration panel, set X-Pack Monitoring to Enable and associate the Logstash cluster with your Elasticsearch cluster.
    Edit Configuration panel
    Parameter Description
    Elasticsearch Cluster Select the Elasticsearch cluster that you use to associate with the Logstash cluster. You can select only an Elasticsearch cluster in the same VPC and of the same version as the Logstash cluster.
    Username Enter the username of the Elasticsearch cluster.
    Password Enter the password of the username for the Elasticsearch cluster.
  7. Click Test Connectivity.
    If no error is reported, the Elasticsearch cluster is connected.
    Warning Enabling or disabling X-Pack Monitoring triggers a restart of the Logstash cluster. This may affect your services. Proceed with caution.
  8. Click OK.
    The system returns to the Cluster Monitoring page and restarts the cluster.
  9. After the cluster is restarted, view the monitoring data of the cluster.
    After the cluster is restarted, the value of X-Pack Monitoring changes to Enable, and the associated Elasticsearch cluster appears.
    Notice You can view the monitoring data of the Logstash cluster in the Kibana console only after the cluster is restarted.
    1. On the Cluster Monitoring page, click Kibana Console.
      X-Pack Monitoring enabled
    2. Log on to the Kibana console of the associated Elasticsearch cluster.
      For more information, see Log on to the Kibana console.
    3. In the left-side navigation pane, click Monitoring.
    4. In the Logstash section, view the monitoring data of the Logstash cluster.
      Logstash monitoring page