Reviewed-by: Mützel, Andrea <andrea.muetzel@t-systems.com> Co-authored-by: Liu, Siying <liusiying@noreply.gitea.eco.tsi-dev.otc-service.com> Co-committed-by: Liu, Siying <liusiying@noreply.gitea.eco.tsi-dev.otc-service.com>
7.6 KiB
Managing Log Streams
A log stream is the basic unit for reading and writing logs. Sorting logs into different log streams makes it easier to find specific logs when you need them.
Up to 100 log streams can be created in a log group. The upper limit cannot be increased. If you cannot create a log stream because the upper limit is reached, you are advised to delete log streams that are no longer needed and try again, or create log streams in a new log group.
Prerequisites
You have created a log group.
Creating a Log Stream
Log streams can be created in two ways. They are automatically created when other services are connected to LTS, or you can create one manually by following the steps described here.
- On the LTS console, click
on the left of a log group name.
- Click Create Log Stream in the upper left corner of the displayed page, and enter a log stream name. After a log stream is created, its name cannot be changed. A log stream name:
- Can contain only letters, digits, hyphens (-), underscores (_), and periods (.).
- Cannot start with a period (.) or underscore (_) or end with a period (.).
- Can contain 1 to 64 characters.
- Click OK.
In the log stream list, you can view details of the list, including the log stream name, creation time, and creation type.
Deleting a Log Stream
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. Deleted log streams cannot be recovered. Exercise caution when performing the deletion.
Other Operations
- Adding a log stream to favorites
Click
in the Operation column of a log stream to add the log stream to favorites. The log stream is then displayed in My Favorites/My Favorites (Local Cache) on the console home page.