forked from docs/doc-exports
Reviewed-by: Mützel, Andrea <andrea.muetzel@t-systems.com> Co-authored-by: Liu, Siying <liusiying@noreply.gitea.eco.tsi-dev.otc-service.com> Co-committed-by: Liu, Siying <liusiying@noreply.gitea.eco.tsi-dev.otc-service.com>
6.8 KiB
6.8 KiB
Managing Log Groups
A log group is a group of log streams. Up to 100 log groups can be created for a single account.
Creating a Log Group
Log groups can be created in two ways. They are automatically created when other services are connected to LTS, or you can create one manually by following the steps described here.
- Log in to the LTS console, choose Log Management in the navigation pane on the left, and click Create Log Group in the upper right corner.
- In the dialog box displayed, enter a log group name. After a log group is created, its name cannot be changed. A log group name:
- Can contain only letters, digits, hyphens (-), underscores (_), and periods (.).
- Cannot start with a period (.) or underscore (_) or end with a period (.).
- Can contain 1 to 64 characters.
- Set Log Retention Duration. You can set it to 1 to 30 days. If this parameter is not specified, logs are retained for 7 days by default.
- Click OK.
- In the log group list, you can view details of log groups, including log group name, log retention duration (days), creation type, creation time, and number of log streams.
- Click the log group name, the details page of one of its log streams is displayed.
- When multiple log groups are created concurrently, there may be a limit exceeding error.
Deleting a Log Group
You can delete a log group that is no longer needed. Deleting a log group will also delete the log streams and log data in the log group. Deleted log groups cannot be recovered. Exercise caution when performing the deletion.

If you want to delete a log group that is associated with a log transfer task, delete the task first.
- In the log group list on the Log Management page, locate the target log group and click Delete in the Operation column.
- Enter DELETE and click OK.
Parent topic: Log Management