Managing Log Groups
A log group is a group of log streams which share the same log retention settings. Up to 100 log groups can be created for a single account.
Prerequisites
You have registered a HUAWEI CLOUD account and completed real-name authentication.
Creating a Log Group
Log groups can be created in two ways. They are automatically created when other HUAWEI CLOUD 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, numbers, hyphens (-), underscores (_), and periods (.).
- Cannot start or end with a period (.) or underscore (_).
- Can contain up to 64 characters.
Collected logs are sent to the log streams in the log group. If there are too many logs to collect, you are advised to separate logs into different log groups based on log types, and name log groups in an easily identifiable way.
- Set the retention duration to 1–30 days (default: 7 days). You can modify the retention period after the log group is created.
LTS offers a free quota of 500 MB per month for log read/write, log retention, and log indexing. When the free quota is used up, you will be billed for excess usage on a pay-per-use basis.
- Click OK.
In the log group list on the Log Management page, you can view details of the log group, including log group name, log retention duration, creation time, and creation type. Log retention duration can be modified. Click Modify in the Operation column of the log group to modify the duration.
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 Yes.
Last Article: Log Management
Next Article: Managing Log Streams
Did this article solve your problem?
Thank you for your score!Your feedback would help us improve the website.