LTS manages logs by log stream. Each log stream belongs to exactly one log group, while a log group can contain multiple log streams.
Collected logs of different types are classified and stored in different log streams for easier log management. If there are a large number of logs, you can create multiple log streams and name them for quick log search. For example, you can sort operation logs and access logs into different log streams, making it easier to find specific logs when you need them. You can add tags to log streams to help O&M personnel manage services.
A maximum of 100 log streams can be created in a log group. If you cannot create a log stream, delete unnecessary log streams and try again, or create log streams in another log group.
You have created a log group.
on the left of the target log group.
Parameter | Description |
|---|---|
Log Group Name | Defaults to name of the log group to which the log stream belongs and be unmodifiable. |
Log Stream Name | LTS automatically generates a default log stream name. You are advised to customize one based on your service. You can also change it after the log stream is created. The naming rules are as follows:
|
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 Storage | If this function is disabled, Log Retention (Days) cannot be enabled.
|
Log Retention (Days) | Specify the log retention period for the log stream, that is, how many days the logs will be stored in LTS after being reported to LTS. By default, logs are retained for 30 days. You can set the retention period to one to 365 days.
|
Tag | Tag the log stream as required. Click Add Tags and enter a tag key and value. To add more tags, repeat this step. A maximum of 20 tags can be added. Tag key restrictions:
Tag value restrictions:
Deleting a tag: Click Delete in the Operation column of the tag. WARNING: Deleted tags cannot be recovered. 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. |
Figure 1 Creating a log stream

By default, a log stream inherits the log retention setting from the log group it belongs to.
You can delete a log stream that is no longer needed. Deleting a log stream will also delete the log data in the log stream.
Before deleting a log stream, check if it is being used by other services, such as log ingestion configurations, log transfer tasks, or log alarm rules. Deleting it while in use may interrupt log reporting.
Deleting a log stream may lead to exceptions in related log tasks. In addition, deleted log streams cannot be restored.