Logging to CloudTrail

Logging to CloudTrail

  1. Access AWS Management Console

    • Find S3
    • Select S3

test cloudtrail

  1. In the S3 interface

    • Select Buckets
    • Select General purpose buckets
    • Select kms-key-s3-<account-id>-<region>-an

test cloudtrail

  1. Next, select the cloudtrail/ folder

test cloudtrail

  1. Next step

    • Follow the path and you will see that there are no logs recorded in the cloudtrail/ folder yet

test cloudtrail

  1. Go back to kms-key-s3-<account-id>-<region>-an

    • Select Upload

test cloudtrail

  1. In the Upload section

    • Select Add files
    • Select the File downloaded in section 4.2
    • Press Open

test cloudtrail

  1. Next step

    • Select Properties

test cloudtrail

  1. Scroll down to the Server-side encryption section

    • Server-side encryption select Specify an encryption key
    • Encryption settings select Override bucket settings for default encryption
    • Encryption type select Server-side encryption with AWS Key Management Service keys (SSE-KMS)
    • AWS KMS key select Choose from your AWS KMS keys

test cloudtrail

  1. Scroll down to the Available AWS KMS keys section

    • Select kms-key-encrypt-decrypt

test cloudtrail

  1. Scroll down and press Upload

test cloudtrail

  1. Notification of successful upload

test cloudtrail

  1. Go back and select the cloudtrail/ folder

test cloudtrail

  1. Follow the path and you will see that the log has been recorded in the cloudtrail/ folder

The folder path is created automatically based on the event date. For example, if the upload happens on a specific year, month, and day, CloudTrail creates the corresponding year/month/day folder structure.

test cloudtrail