Cloud Defense Logo

Products

Solutions

Company

Book A Live Demo

Rule: Log group retention period should be at least 365 days

This rule ensures the retention period for log groups is set to a minimum of 365 days.

RuleLog group retention period should be at least 365 days
FrameworkSOC 2
Severity
High

Log Group Retention Period for SOC 2

Description

The log group retention period is an essential control for maintaining audit trails and preserving log data for a sufficient duration. For SOC 2 compliance, it is required to retain log events for a minimum period of 365 days. This ensures that log data is available for monitoring, investigation, analysis, and reporting purposes.

Troubleshooting Steps

If the log group retention period is not set to at least 365 days, it can pose risks to SOC 2 compliance. To troubleshoot and address the issue, follow these steps:

  1. 1.
    Verify the current retention period: Check the configuration settings of your log management system or cloud provider to determine the existing retention period for log groups.
  2. 2.
    Review SOC 2 requirements: Understand the specific SOC 2 compliance requirements for log retention, which mandate a minimum of 365 days for log data preservation.
  3. 3.
    Update log group retention settings: Modify the log group retention period to meet or exceed the minimum required duration specified by SOC 2.
  4. 4.
    Test retention changes: Validate that the updated retention period has been applied correctly and log data is being retained for the desired duration.
  5. 5.
    Monitoring and periodic reviews: Establish regular monitoring processes to ensure ongoing compliance with the log group retention policy. Conduct periodic reviews to confirm that log data is being retained as per the defined retention period.

Necessary Codes

If you are using AWS CloudWatch Logs, you can use the AWS Command Line Interface (CLI) to update the log group retention period. Here is an example command:

aws logs put-retention-policy --log-group-name your-log-group-name --retention-in-days 365

Replace

your-log-group-name
with the actual name of the log group you want to update, and
365
with the desired retention period in days.

Step-by-Step Guide for Remediation

To ensure compliance with the log group retention period requirement of SOC 2, follow this step-by-step guide:

  1. 1.

    Review the existing log group retention configuration: Check the settings in your log management system or cloud provider to confirm the current log group retention period.

  2. 2.

    Verify SOC 2 compliance requirements: Understand the specific requirements for SOC 2 log retention policies, which mandate a minimum retention period of 365 days.

  3. 3.

    Determine the appropriate log groups: Identify the relevant log groups to be updated with the new retention period.

  4. 4.

    Install and configure the AWS CLI (if applicable): If you are using AWS CloudWatch Logs, ensure that the AWS CLI is installed and configured with the appropriate credentials.

  5. 5.

    Update the log group retention period using the CLI: Execute the following command to set the retention period to 365 days for the desired log group:

    aws logs put-retention-policy --log-group-name your-log-group-name --retention-in-days 365
    

    Replace

    your-log-group-name
    with the actual name of the log group you want to update.

  6. 6.

    Verify the retention policy update: Validate that the changes have been applied successfully by checking the log group settings.

  7. 7.

    Conduct regular monitoring: Implement a process to regularly monitor log group retention settings to ensure compliance with SOC 2 requirements.

  8. 8.

    Perform periodic reviews: Periodically review log group retention periods to ensure continuous compliance with SOC 2 and update them if necessary.

By following these steps, you can establish and maintain log group retention periods of at least 365 days to meet the SOC 2 compliance requirements.

Is your System Free of Underlying Vulnerabilities?
Find Out Now