Step 1: 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, enter a log group name.
Collected logs are sent to the log streams of the corresponding log groups. If there are a large number of logs, name log groups and log streams in an easily identifiable way so that you can quickly find the logs you desire.
A log group name:
- Can contain only letters, numbers, underscores (_), hyphens (-), and periods (.). The name cannot start with a period or underscore, or end with a period.
- Can contain 1 to 64 characters.
- Set Log Retention Duration to 1 to 30 days.
- Add a tag.
- Enter remarks as required.
- Click OK.
Creating a Log Stream
- Click on the left of a log group name.
- Click Create Log Stream.
- In the dialog box displayed, enter a log stream name.
- Select the required enterprise project in Enterprise Project Name. The default value is default. You can click View Enterprise Projects to view all enterprise projects.
- Enable the log retention duration as required and set a custom tag.
- Enter remarks as required.
- Click OK.
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