Updated on 2024-04-19 GMT+08:00

Tag Management

You can tag log groups, log streams, host groups, and log ingestion configurations.

If your organization has configured tag policies for LTS, add tags to log groups, log streams, log ingestion rules, and host groups based on the tag policies. If a tag does not comply with the tag policies, log group, log stream, ingestion rule, and host group creation may fail. Contact your administrator to learn more about tag policies. For details about tag policies, see Overview of a Tag Policy. For details about tag management, see Overview of a Tag.

Tagging a Log Group

Users can add, delete, modify, and query tags on the log group page.

  1. Log in to the LTS console, and choose Log Management in the navigation pane on the left.
  2. Move the cursor to the Tags column of the target log group and click .
  3. On the Edit page that is displayed, click Add Tags and enter a tag key and value. If you enable Apply to Log Stream, the tag will be synchronized to all log streams in the log group.
    Figure 1 Editing a tag
    • To add multiple tags, repeat this step.
    • To delete a tag, click in the Operation column of the tag.
    • A tag key can contain up to 128 characters, and a tag value can contain up to 255 characters.
    • A tag key must be unique.
    • If a tag is used by a transfer task, you need to modify the task configuration after deleting the tag.
  4. Click OK.

    On the Log Management page, you can view the added tags in the Tags column of the log group.

Tagging a Log Stream

You can add, delete, modify, and view tags on the log stream list page. When you manage the tags of a single log stream, the changes will not be synchronized to other streams.

  1. Log in to the LTS console, and choose Log Management in the navigation pane on the left.
  2. Click in front of the name of the target log group.
  3. Move the cursor to the Tags column of the target log stream and click .
  4. On the Edit page that is displayed, click Add Tags and enter a tag key and value.
    Figure 2 Editing a tag
    • To add multiple tags, repeat this step.
    • To delete a tag, click in the Operation column of the tag.
    • A tag key can contain up to 128 characters, and a tag value can contain up to 255 characters.
    • A tag key must be unique.
    • If a tag is used by a transfer task, you need to modify the task configuration after deleting the tag.
  5. Click OK.

    In the log stream list, you can view the system tags and added custom tags in the Tags column of the log stream.

Tagging a Host Group

You can add, delete, modify, and view tags on the host group list page. When you manage the tags of a single host group, the changes will not be synchronized to other groups.

  1. Log in to the LTS console, and choose Host Management in the navigation pane on the left.
  2. On the Host Groups tab, click in the Operation column of a host group.
  3. On the Edit page that is displayed, click Add Tags and enter a tag key and value.
    • To add multiple tags, repeat this step.
    • To delete a tag, click in the Operation column of the tag.
    • A tag key can contain up to 128 characters, and a tag value can contain up to 255 characters.
    • A tag key must be unique.
  4. Click OK.

    On the Host Management page, you can view the added tags in the Tags column of the host group.

Tagging a Log Ingestion Configuration

You can add, delete, modify, and view tags on the log ingestion page. When you manage the tags of a single log ingestion configuration, the changes will not be synchronized to other configurations.

  1. Log in to the LTS console, and choose Log Ingestion in the navigation pane on the left.
  2. Click Configure Tag in the Operation column of a log ingestion configuration.
  3. On the Edit page that is displayed, click Add Tags and enter a tag key and value.
    • To add multiple tags, repeat this step.
    • To delete a tag, click next to the tag in the text box.
    • A tag key can contain up to 128 characters, and a tag value can contain up to 255 characters.
    • A tag key must be unique.
  4. Click OK.

    On the Log Ingestion page, you can view the added tags in the Tags column of the log ingestion configuration.