The page has been translated by Gen AI.

Log

Log

ServiceWatch logs allow you to monitor, store, and access log files collected from the resources of the services that provide logs.

Log Group1Log Group1Log Group1Log Group2Log Group2Log Group2
Log Stream1Log Stream2Log Stream3Log StreamALog StreamBLog StreamC
Log EventLog EventLog EventLog EventLog EventLog Event
Log EventLog EventLog EventLog EventLog Event
Table. Log Configuration - Log Group, Log Stream, Log Event
Reference

As an example of the log configuration, it is as follows.

  • 📂 Log group: “WebApp-Logs”
  • 📄 log stream 1: “Server-1”
  • 📝 Log Event 1: “[2025-03-20 10:00:01] User logged in”
  • 📝 Log event 2: “[2025-03-20 10:05:34] Database connection error”

Log Group

A log group is a container for log streams that share the same retention policy settings, each log stream must belong to one log group, for example, if there are separate log streams for the logs of each Kubernetes Engine cluster, the log streams can be bundled into one log group named /scp/ske/{cluster name}.

Log Retention Policy

The log retention policy allows you to set the period during which log events are stored in ServiceWatch. Log events that have expired are automatically deleted. Log The retention period assigned to the group applies to the log streams and log events belonging to the log group.

The retention period can be selected from the following, and it is set in units of days.

Preservation period
  • No expiration
  • 1 day
  • 3 days
  • 5 days
  • 1 week (7 days)
  • 2 weeks (14 days)
  • 1 month (30 days)
  • 2 months (60 days)
  • 3 months (90 days)
  • 4 months (120 days)
  • 5 months (150 days)
  • 6 months (180 days)
  • 1 year (365 days)
  • 13 months (400 days)
  • 18 months (545 days)
  • 2 years (731 days)
  • 3 years (1096 days)
  • 5 years (1827 days)
  • 6 years (2192 days)
  • 7 years (2557 days)
  • 8 years (2922 days)
  • 9 years (3288 days)
  • 10 years (3653 days)
Table. Log group retention policy period

Log Stream

A log stream is a collection of log events that are ordered by the time they occurred, from the same source, for example, all log events occurring in a specific Kubernetes Engine cluster can constitute one log stream.

Log Event

A log event is an individual record of a log that occurs from a resource. The log event record includes two properties: a timestamp of when the event occurred and a log message. Each message must be encoded in UTF-8.

Export log group

You can export log data from the log group to Object Storage for log archiving and log analysis, and you can also export log data within the same account to the log group.

To start logging group export, you must create an Object Storage bucket to store log data.

Exporting a log group can take a long time depending on the amount of log, when exporting a log group, you can specify a specific stream within the log group, or specify a time range to reduce the time it takes to export the log group.

Exporting a log group can only be executed once at a time for the same Account. To run another log group export, the current export task in progress must be completed.

Log group export statusDescription
SuccessThe log group export task was completed successfully.
PendingLog group export task is pending.
In progressThe log group export task is in progress.
File transferringLog group export file is being transferred.
FailedThe log group export task failed.
Table. Log group export status
Alert
event