Updated on 2023-11-29 GMT+08:00

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

  1. Log in to the LTS console. On the Log Management page, click Create Log Group.

  2. 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.
  3. Set Log Retention Duration to 1 to 30 days.
  4. Enter remarks as required.
  5. Click OK.

Creating a Log Stream

  1. Click on the left of a log group name.
  2. Click Create Log Stream.

  3. In the dialog box displayed, enter a log stream name.

    Figure 1 Creating a log stream
  4. 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.
  5. Enter remarks as required.
  6. Click OK.