| name | cis-aws-database-6.4 |
| description | Ensure Audit Logging is Enabled |
| category | cis-database |
| version | 2.0.0 |
| author | cyberstrike-official |
| tags | ["cis","aws","database","memorydb","redis","logging","cloudwatch","audit"] |
| cis_id | 6.4 |
| cis_benchmark | CIS AWS Database Services Benchmark v2.0.0 |
| tech_stack | ["aws"] |
| cwe_ids | [] |
| chains_with | ["cis-aws-database-6.5","cis-aws-database-6.6"] |
| prerequisites | [] |
| severity_boost | {} |
6.4 Ensure Audit Logging is Enabled (Manual)
Description
Enabling audit logging on Amazon MemoryDB allows you to capture and store logs of activities performed on your clusters.
Rationale
It captures and saves logs of activities that took place in the cluster.
Impact
Reduces risks of any fraud since worker activity is being monitored and tracked.
Audit Procedure
Using AWS Console
-
Sign into the AWS Management Console
-
Open the Amazon MemoryDB Console
-
Select the Cluster
- Choose the MemoryDB cluster for which you want to enable audit logging. Click on the cluster name to access its details page.
-
Enable Amazon CloudWatch Logs
- In the cluster details page, navigate to the
Logging section.
- Click on
Modify to edit the logging settings.
- Select the option to enable CloudWatch Logs.
- Choose an existing CloudWatch log group or create a new one to store the logs generated by the MemoryDB cluster activities.
- Optionally, you can specify a log retention period to define how long the logs will be stored.
- Click
Apply Changes to enable CloudWatch Logs for the MemoryDB cluster.
-
Configure CloudWatch Logs
- Open the CloudWatch console by navigating to
CloudWatch in the AWS Management Console.
- In the left-side menu, click on
Logs.
- Create a new log group or select an existing log group that will store the MemoryDB logs.
- Configure log retention settings based on your retention requirements. Logs can be stored for a specific number of days or indefinitely.
- Define any necessary log group permissions to control access to the logs.
- Optionally, set up log exports or alarms for specific log events or patterns if needed.
-
Verify Logging Status
- Wait a few minutes for the changes to propagate and the logging configuration to take effect.