Creating Log Groups and Log Streams
Log groups and log streams are basic units for log management in LTS. Before using LTS, create a log group and a log stream.
Prerequisites
You have obtained an account and its password for logging in to the console.
Creating a Log Group
- Log in to the LTS console. On the Log Management page, click Create Log Group.
- In the dialog box displayed, set log group parameters by referring to Table 1.
Table 1 Log group parameters Parameter
Description
Log Group Name
- A log group 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.
- 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.
Log Retention Duration
Retention duration of the log group.
Tag
You can add tags to each log group. Click Add Tags, enter a tag key and tag value, and enable Apply to Log Stream.
NOTE:- 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.
Remark
Enter remarks. The value contains up to 1,024 characters.
- Click OK. The created log group will be displayed in the log group list.
Creating a Log Stream
- Click
on the left of a log group name and click Create Log Stream.
- In the dialog box displayed, set log stream parameters by referring to Table 2.
Table 2 Log stream parameters Parameter
Description
Log Group Name
The name of the target log group is displayed by default.
Log Stream Name
- A log stream 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.
- Collected logs are sent to the created log stream. If there are a large number of logs, you can create multiple log streams and name them for quick log search.
Enterprise Project Name
Select the required enterprise project. The default value is default. You can click View Enterprise Projects to view all enterprise projects.
Log Retention Duration
Log retention duration for the log stream.
- If this parameter is disabled, the log stream will inherit the log retention setting of the log group.
- If this parameter is enabled, you can set the log retention duration specifically for the log stream.
Tag
Add tags for different log streams as required. Click Add Tags and enter a tag key and tag value.
NOTE:- 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.
Remark
Enter remarks. The value contains up to 1,024 characters.
- Click OK. The created log stream will be displayed under the target log group.
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