This rule ensures that CloudTrail trails are integrated with CloudWatch logs.
Rule | CloudTrail trails should be integrated with CloudWatch logs |
Framework | GxP 21 CFR Part 11 |
Severity | ✔ Critical |
CloudTrail Integration with CloudWatch Logs for GxP 21 CFR Part 11
Description
In order to meet the requirements of GxP 21 CFR Part 11, it is essential to integrate CloudTrail trails with CloudWatch logs. CloudTrail provides visibility into the actions taken by various AWS services, while CloudWatch logs enable the centralized logging and analysis of those actions. This integration ensures that audit trails are captured and readily available for compliance purposes.
Troubleshooting Steps
If you encounter any issues while attempting to integrate CloudTrail with CloudWatch logs for GxP 21 CFR Part 11 compliance, follow these troubleshooting steps:
Verify the IAM role: Ensure that you have the appropriate IAM role with sufficient permissions to enable this integration. Make sure the role includes necessary policies for CloudTrail and CloudWatch logs integration.
Check CloudTrail settings: Confirm that CloudTrail is enabled and configured correctly. Ensure that you are capturing all relevant events and delivering them to CloudWatch logs.
Verify CloudWatch log group: Check the CloudWatch log group settings to ensure that it exists and is properly configured. Ensure that CloudTrail logs are being delivered to this log group.
Check CloudWatch log retention policy: Validate the log retention policy for your CloudWatch log group. Ensure that it complies with the requirements of GxP 21 CFR Part 11 regarding log retention duration.
Ensure CloudWatch log permissions: Verify that the IAM role associated with CloudTrail has the necessary permissions to write logs to the designated CloudWatch log group.
Necessary Codes
Before proceeding with the integration, it is important to note that you will need to utilize the AWS Command Line Interface (CLI) with the appropriate permissions.
Step-by-Step Guide for Remediation
Step 1: Create a CloudWatch log group
Step 2: Enable CloudTrail integration with CloudWatch logs
Step 3: Verify the integration
Step 4: Periodically review and monitor the logs
By following these steps, you can successfully integrate CloudTrail trails with CloudWatch logs to meet the compliance requirements of GxP 21 CFR Part 11.