Step-by-Step CloudTrail Tutorials

Learn how to set up, configure, and monitor resources in your cloud environment using our guided tutorials. Master security, compliance, and audit workflows through practical examples.

Start First Tutorial →

Featured Tools

CloudTrail Console CloudWatch Logs AWS CLI IAM Roles

Getting Started

Begin by setting up your CloudTrail environment and understanding the core monitoring capabilities.

Enable CloudTrail

Create your first trail configuration to start logging system events.

Set Up Filters

Learn to use query filters for specific event monitoring.

Creating a Trail

1. Configure Trail

First create the CloudTrail resource and link it to a logging bucket.

aws cloudtrail create-trail \ --name MyFirstTrail \ --s3-bucket-name training-logs

2. Add Multi-Account Support

Extend this trail to monitor resource changes across multiple AWS accounts.

aws cloudtrail update-trail \ --name MyFirstTrail \ --is-multi-region-trail true

Enabling Real-Time Logging

Start Immediate Logging

CLI

After creating your trail, activate logging to begin capturing events.

aws cloudtrail start-logging \ --name MyFirstTrail
This operation will begin writing event records to the trail as soon as resources change. Confirm with aws cloudtrail describe-trail to check status.

Creating Event Filters

Set up filters to analyze events efficiently. These filters will help you focus on the relevant events.

Event Pattern Matching

CloudWatch

Create CloudWatch event rules to trigger alarms based on specific trails.

Event filter setup

Resource-Level Logging

API

Use AWS Config integration to track individual resource changes.

Resource log view