How to resolve Sprinto check to ensure that AWS server logs are retained for at least 90 days
About:
Sprinto Check: AWS server access logs should be retained for 90 days
This Sprinto check verifies that the log retention period for your AWS server logs, such as Amazon CloudWatch Logs or AWS CloudTrail logs, is set to at least 90 days.
Note: At this time, our platform does not support AWS CloudWatch Composite Alarms or Math-Based Alarms.
This means you cannot create alarms that:
Combine multiple alarms using logical conditions (e.g., ALARM1 AND ALARM2
)
Use metric math expressions (e.g., calculating averages or deltas across metrics)
Purpose:
The purpose of retaining server logs for at least 90 days is to ensure that you have an adequate historical record of system events, user activities, and security-related incidents within your AWS environment. This extended log retention period enables effective monitoring, troubleshooting, and forensic analysis in case of security breaches, compliance audits, or other investigations.
How to fix:
Follow the below steps to fix this check:
Before you begin
Ensure you have administrator privilege on the AWS account to modify the log retention period.
Reviewing logs retention period
Follow the below procedure to review and modify the CloudWatch log group retention period:
Log in to the AWS Console using your credentials or Single Sign-On (SSO) options.
Navigate to the AWS CloudWatch service.
Click on Log Groups under Logs from the navigation bar on the left side.
Review the retention period column, and ensure that all log group retention is set to be at least 90 days. The Sprinto check starts failing If any log group retention is less than 90 days. Note: Sprinto check passes if the configured retention period is more than 90 days.
Click on the retention period and modify it to equal or more than 90 days. Click Save to apply the changes.
Repeat the above steps for all log groups that have a retention set of less than 90 days.
Sprinto detects the configuration change and sets the check status to “Passing.”
Contact Sprinto support if you have any queries related to the check or need assistance.