Help Center/ Log Tank Service/ More Documents/ User Guide(Paris Regions)/ Getting Started/ Step 1: Creating Log Groups and Log Streams
Updated on 2023-11-14 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 the username and 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. If this parameter is not specified, logs are retained for 7 days by default.
  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.

  4. Enter remarks as required.
  5. Click OK.