Updated on 2024-10-12 GMT+08:00

Setting Tags for a Logstash Cluster

Tags are cluster identifiers. Adding tags to clusters can help you identify and manage your cluster resources.

You can add tags to a cluster when creating the cluster or add them on the details page of the created cluster.

Constraints

You can create a maximum of 20 tags for a CSS cluster.

If your organization has configured tag policies for CSS, add cluster tags based on these policies. If a tag does not comply with the tag policies, cluster creation may fail. Contact the administrator to learn more about tag policies.

Managing Tags

In CSS, you can add, delete, modify, and query cluster tags.

  1. Log in to the CSS management console.
  2. On the Clusters page, click the name of a cluster for which you want to manage tags.

    The Basic Information page is displayed.

  3. In the navigation pane on the left, choose the Tags tab. You can add, modify, or delete tags.
    • View

      On the Tags page, you can view details about tags of the cluster, including the number of tags and the key and value of each tag.

    • Add

      Click Edit Tag in the upper left corner. In the displayed dialog box, click Add Tag, enter the tag key and value, and click OK.

    • Modify

      Click Edit Tag in the upper left corner. In the displayed dialog box, modify the key and value of a tag, and click OK.

    • Delete

      Click Edit Tag in the upper left corner. In the displayed dialog box, click Delete in the row that contains a tag, and click OK.

    Table 1 Tag rules

    Parameter

    Description

    Tag Key

    • Must be unique in a cluster.
    • Enter up to 64 characters.
    • It can contain only numbers, letters, Chinese characters, and the following special characters: _.:=+-@ The value cannot start or end with a space.
    • Cannot be blank.

    Tag Value

    • Enter up to 64 characters.
    • It can contain only numbers, letters, Chinese characters, and the following special characters: _.:=+-@ The value cannot start or end with a space.
    • Cannot be blank.

Searching for Clusters by Tag

  1. Log in to the CSS management console.
  2. On the Clusters page, click the search box above the cluster list and select tag keys and values to search for clusters.

    You can select a tag key or tag value from their drop-down lists. The system returns a list of clusters that exactly match the tag key or tag value. If you enter multiple tags, the cluster that meets requirements of all the tags will be filtered.

    You can add a maximum of 10 tags at one time.