Logging AWS Recommended Actions API calls using AWS CloudTrail - AWS Management Console

Logging AWS Recommended Actions API calls using AWS CloudTrail

AWS Recommended Actions is integrated with AWS CloudTrail, a service that provides a record of actions taken by a user, role, or an AWS service. CloudTrail captures all API calls for AWS Recommended Actions as events. The calls captured include calls from the AWS Management Console and code calls to the AWS Recommended Actions API operations. Using the information collected by CloudTrail, you can determine the request that was made to AWS Recommended Actions, the IP address from which the request was made, when it was made, and additional details.

CloudTrail is active in your AWS account when you create the account and you automatically have access to the CloudTrail Event history. The CloudTrail Event history provides a viewable, searchable, downloadable, and immutable record of the past 90 days of recorded management events in an AWS Region. For more information, see Working with CloudTrail Event history in the AWS CloudTrail User Guide. There are no CloudTrail charges for viewing the Event history.

For an ongoing record of events in your AWS account past 90 days, create a trail or a CloudTrail Lake event data store.

AWS Recommended Actions management events in CloudTrail

Management events provide information about management operations that are performed on resources in your AWS account. These are also known as control plane operations. By default, CloudTrail logs management events.

AWS Recommended Actions logs all AWS Recommended Actions control plane operations as management events.

AWS Recommended Actions event examples

An event represents a single request from any source and includes information about the requested API operation, the date and time of the operation, request parameters, and so on. CloudTrail log files aren't an ordered stack trace of the public API calls, so events don't appear in any specific order.

The following example shows a CloudTrail event that demonstrates the operation.

{ "awsRegion": "us-east-2", "eventCategory": "Management", "eventID": "3510a29e-8070-4cbc-b6a0-9e11f18e26ec", "eventName": "ListRecommendedActions", "eventSource": "action-recommendations.amazonaws.com", "eventTime": "2025-09-03T03:52:02Z", "eventType": "AwsApiCall", "eventVersion": "1.09", "managementEvent": true, "readOnly": true, "recipientAccountId": "123456789098", "requestID": "ec431c91-0315-413d-bdb6-d282fd4f6d83", "requestParameters": { "context": "*", "uxChannel": "EXAMPLE" }, "responseElements": null, "sourceIPAddress": "192.0.2.0", "userAgent": "EXAMPLE", "userIdentity": { "type": "AssumedRole", "principalId": "AROARZDBH75ZCUYWFSTUS:EXAMPLE", "arn": "arn:aws:sts::123456789098:assumed-role/EXAMPLE", "accountId": "12345678909", "accessKeyId": "ASIARZDBEXAMPLE", "sessionContext": { "sessionIssuer": { "type": "Role", "principalId": "AROARZDBHEXAMPLE", "arn": "arn:aws:iam::12345678909:role/EXAMPLE", "accountId": "12345678909", "userName": "EXAMPLE" }, "attributes": { "creationDate": "2025-09-03T03:52:00Z", "mfaAuthenticated": "false" } }, "invokedBy": "action-recommendations.amazonaws.com" } }

For information about CloudTrail record contents, see CloudTrail record contents in the AWS CloudTrail User Guide.