Manage log storage
You can store Cloud Trail event records in Object Storage. The log storage schedule is based on the top of the hour, and logs begin saving from the next hour after the feature is activated. It may take some time for logs to appear after the hour mark. Below is how to manage logs in the Cloud Trail service.
The log storage management feature is available to users with the Project Member or Project Manager role at the project level, and Trail Viewer or Organization Admin role at the organization level.
Enable log storage
To store Cloud Trail event records, you can enable log storage management.
-
Go to KakaoCloud Console > Management > Cloud Trail.
-
Click the Events menu.
-
Click the [Manage log storage] button in the top-right corner of the event list.
-
In the Manage log storage popup, configure the following options:
Item Description Log storage option Enable or disable log storage management Event scope Set scope of events to store
- If not including organization events, only project events are storedStorage bucket Object Storage bucket where events will be saved
- Charges apply based on storage volume
- Events are stored in thetrail
folder underdomain_event
andproject_event
subfoldersFile extension File extension for compressed trail logs
- Choose fromgz
,gzip
, orzip
Access key IAM Access Key ID and Secret Access Key for event storage
- Refer to Get IAM access key for instructions -
Next to the [Manage log storage] button, you can check the current log storage status.
Log storage error
If the bucket is deleted, access permissions change, or the access key is updated or removed, a log storage error occurs and the status changes to Log storage error.
When this occurs, you must reconfigure log storage settings.
Error code | Description |
---|---|
TRAIL_400-001 | Access key changed or deleted, preventing bucket access |
TRAIL_400-002 | No access permission for the bucket |
TRAIL_400-003 | Bucket deleted, unable to store logs |
TRAIL_999-001 | Unknown error; logs cannot be stored - In this case, the system will automatically retry log storage at the next scheduled time, so no manual changes are needed |
Logs that failed to save during the error window will be uploaded to the bucket at the next storage interval once the error is resolved.
Disable log storage
You can disable previously configured log storage. When disabled, all related settings such as bucket and access keys are reset.
- Go to KakaoCloud Console > Management > Cloud Trail.
- Click the Events menu.
- Click the [Manage log storage] button. In the popup, change the Log storage option to Disabled, then click [Save].
- In the confirmation popup, click [Disable].