Log group in Cloud Logging
Written by
Updated at September 19, 2024
A log group is a way of grouping logs of services and custom messages. There are two types of groups:
-
Default.
The name of the default log group is
default
. The group is created automatically when a service or application writes logs with the folder ID specified for destination. A user can add records to it manually. If you create a log group nameddefault
, it will be the default log group for the folder it was created in. -
Custom.
A user can create a log group and add records to it manually.
When adding a record to a log group, you can specify its creation timestamp
. The record creation timestamp may differ from the time it was added to the log group. It must satisfy the following conditions:
Current date – 30 days < Record creation timestamp < Current date + 1 day