Managing Log Groups
A log group is a group of log streams. Up to 100 log groups can be created for a single account.
Prerequisites
You have obtained an account and its password for logging in to the console.
Creating a Log Group
Log groups can be created in two ways. They are automatically created when other services interconnect with 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.
- Collected logs are sent to the log group. If there are too many logs to collect, separate logs into different log groups based on log types, and name log groups in an easily identifiable way. After a log group is created, its name cannot be changed.
- The log name can contain 1 to 64 characters, including only letters, digits, hyphens (-), underscores (_), and periods (.). It cannot start with a period or underscore or end with a period.
- Set Log Retention Duration. You can set it to 1 to 30 days.
Figure 1 Creating a log group
- Set the tag value in the Key = Value format, for example, a=b. For details, see Tag Management.
- Enter remarks. The value contains 0 to 1024 characters.
- Click OK.
- In the log group list, you can view the log group name (can be modified), remarks (can be modified), number of log streams, tags, and the Operation column of each log group. In the Operation column of a log group, you can click Modify to modify its settings such as the log retention duration and remarks, and click Details to view its details.
- 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.
Modifying a Log Group
You can modify the log retention duration, log name, or remarks of a log group by performing the following steps:
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.
Figure 2 Deleting a log group
Searching Log Groups/Streams
In the log group list, click the search box and set the following filter criteria:
- Log group/stream
- Original log group/stream name
- Log group name/ID
- Log stream name/ID
- Log group tag
- Remarks
Other Operations
To view the details of a log group, go to the log group list and click Details in the Operation column of the desired log group, including the log group name, ID, and creation time.
Click next to the search box to download all displayed information about the log group to the local PC.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot