bsearch_label is a frontend data labeling plug-in. It supports visualized data labeling. This way, you do not need to write complex domain-specific language (DSL) statements.

Prerequisites

Background information

In most cases, when you analyze data, you may want to use query conditions to filter the data in addition to viewing the data and use tags to classify fields. This procedure is known as data labeling. After you add tags to data, you can use the tags to aggregate and classify the data, perform statistical analysis, and filter data by tag. The labeled data can be used in subsequent procedures.

Procedure

  1. Log on to the Kibana console of your Alibaba Cloud Elasticsearch cluster.
    For more information, see Log on to the Kibana console.
  2. In the left-side navigation pane, click Management and follow these steps to create an index pattern:
    Notice If you have created an index pattern, skip this step.
    1. In the Kibana section of the Management page, click Index Patterns.
    2. In the Create index pattern section, enter an index pattern name (the name of the index that you want to query).
    3. Click Next step.
      Create an index pattern
    4. Click Create index pattern.
  3. In the left-side navigation pane, click Discover.
  4. In the top navigation bar of the Discover page, click Label.
  5. Use one of the following methods to label the data.
    • Add a tag to an existing field.1
      1. As shown in the preceding example, find the record of user zhangsan.
      2. Select the age field and add tag 18 to this filed.
      3. Click make tag.
      4. Click the history switch to view detailed labeling history.View labeling history
    • Add a tag to a new field.3
      1. As shown in the preceding example, find the record of user zhangsan.
      2. Select custom marking field.
      3. Add the tag field and add the teenager tag to this field.
      4. Click make tag.
      5. View the labeling result.View the labeling result