Manage log storage
You can store Cloud Trail event records in Object Storage. The log storage feature is scheduled based on the hour, and log storage begins from the next hourly mark after activation. It may take some time after the hour for logs to be stored. The following describes how to manage logs in the Cloud Trail service.
The log storage management feature is available to users with the project role of Project member or Project admin and the organization role of Trail viewer or Organization admin.
Enable log storage
You can use log storage management to store Cloud Trail event records.
-
Go to KakaoCloud Console > Management > Cloud Trail.
-
Select the Event menu.
-
Click the [Log storage management] button in the upper right corner of the event list.
-
In the Log storage management pop-up, configure the required settings.
Item Description Log storage option Specify whether to enable log storage management Event storage scope Set the scope of events to store
- If organization event inclusion is not selected, only project events will be storedStorage bucket Object Storage bucket where events will be stored
- Charges may apply depending on the size of stored logs
- Logs are stored in thetrailfolder of the specified bucket underdomain_eventandproject_eventfoldersLog storage interval Interval for storing logs
- Can choose between1 hourand10 minutesFile extension Extension of the compressed trail log file stored in the bucket
- Can choose fromgz,gzip, orzipAccess key IAM access key ID and secret access key for storing events
- Refer to Credentials > Issue IAM access key to issue an access key ID and secret key -
Next to the [Log storage management] button, you can check the current log storage status.
Log storage error
If an error occurs during log storage due to bucket deletion, permission changes, or access key changes/deletion, the log storage status changes to Log storage error. In such cases, you must reconfigure Log storage management.
| Error code | Description |
|---|---|
| TRAIL_400-001 | Access to bucket failed due to changed or deleted user access key |
| TRAIL_400-002 | No permission to access the bucket |
| TRAIL_400-003 | Bucket deleted, unable to store logs |
| TRAIL_999-001 | Unknown error, unable to store logs - When this error occurs, log storage is automatically retried at the next scheduled time, so no changes to the configuration are required |
Logs that could not be stored due to an error will be uploaded to the bucket at the next scheduled time once the issue is resolved.
Disable log storage
You can stop previously configured log storage. When disabled, all bucket and access key information related to log storage is reset.
- Go to KakaoCloud Console > Management > Cloud Trail.
- Select the Event menu.
- Click the [Log storage management] button in the upper right corner of the event list. In the pop-up, change the log storage option to Disabled, then click the [Save] button.
- In the log storage disable pop-up, click the [Stop] button.