Skip to main content

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.

info

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.

  1. Go to KakaoCloud Console > Management > Cloud Trail.

  2. Click the Events menu.

  3. Click the [Manage log storage] button in the top-right corner of the event list.

  4. In the Manage log storage popup, configure the following options:

    ItemDescription
    Log storage optionEnable or disable log storage management
    Event scopeSet scope of events to store
    - If not including organization events, only project events are stored
    Storage bucketObject Storage bucket where events will be saved
    - Charges apply based on storage volume
    - Events are stored in the trail folder under domain_event and project_event subfolders
    File extensionFile extension for compressed trail logs
    - Choose from gz, gzip, or zip
    Access keyIAM Access Key ID and Secret Access Key for event storage
    - Refer to Get IAM access key for instructions
  5. 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 codeDescription
TRAIL_400-001Access key changed or deleted, preventing bucket access
TRAIL_400-002No access permission for the bucket
TRAIL_400-003Bucket deleted, unable to store logs
TRAIL_999-001Unknown 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
info

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.

  1. Go to KakaoCloud Console > Management > Cloud Trail.
  2. Click the Events menu.
  3. Click the [Manage log storage] button. In the popup, change the Log storage option to Disabled, then click [Save].
  4. In the confirmation popup, click [Disable].