5.6 Ensure Monitoring and Logging is Enabled
Description
Implementing monitoring and logging for Amazon ElastiCache allows you to gain visibility into the performance, health, and behavior of your ElastiCache clusters.
Rationale
This helps the individual know what is being logged within the activity and determine what next step they should take to address any suspicious activity.
Impact
If the individual is not monitoring and logging their activity it allows the attacker to attack the system and extract or destroy data.
Audit Procedure
Using AWS Console
Sign in to the AWS Management Console
- Sign in to the AWS Management Console at https://console.aws.amazon.com/ with your AWS account credentials.
Open the ElastiCache Console
- Navigate to the service using the
Find Servicessearch bar or by directly accessing the console at https://console.aws.amazon.com/elasticache/.
- Navigate to the service using the
Select the ElastiCache Cluster
- Choose the ElastiCache cluster for which you want to implement monitoring and logging.
- Click on the cluster name to access its details page.
Enable Enhanced Monitoring
- Click on the
Monitoringtab on the cluster details page. - Under the
Monitoringsection, click on theEnable Enhanced Monitoringbutton. - Select the desired monitoring granularity (1 minute, 5 minutes, or 60 minutes) to capture detailed metrics.
- Choose the desired CloudWatch namespace to store the metrics.
- Click
Save changesto enable enhanced monitoring for the ElastiCache cluster.
- Click on the
Set Up CloudWatch Alarms
- In the CloudWatch console, navigate to
Alarmsin the left-side menu. - Click
Create alarmto create a new alarm. - Select the appropriate ElastiCache metrics from the available options.
- Configure the threshold, conditions, and actions for the alarm.
- Choose the actions to take when the alarm state is triggered (e.g., send notifications, auto-scaling actions, etc.).
- Click
Create alarmto save the alarm configuration.
- In the CloudWatch console, navigate to
Configure CloudWatch Logs
- In the CloudWatch console, navigate to
Logsin the left-side menu. - Click
Create log groupto create a new one. - Provide a unique name for the log group and optionally specify a retention period for log data.
- Click
Create log groupto create the log group. - On the ElastiCache cluster details page, click the
Loggingtab. - Enable the
CloudWatch Logsoption and select the desired log group from the dropdown menu. - Click
Save changesto enable CloudWatch Logs for the ElastiCache cluster.
- In the CloudWatch console, navigate to
Verify Monitoring and Logging
- Wait a few minutes for the monitoring and logging configurations to take effect.
- Refresh the cluster details page for the updated monitoring and logging status.
- Navigate to the CloudWatch console to view metrics, alarms, and logs related to your ElastiCache cluster.
Expected Result
Enhanced monitoring is enabled, CloudWatch alarms are configured, and CloudWatch Logs are enabled for all ElastiCache clusters.
Remediation
The individual can understand the health, performance, and behavior of their clusters which allows them to address any unusual activity that takes place.
Using AWS Console
Follow the same steps as the audit procedure to enable monitoring and logging for ElastiCache clusters.
Default Value
By default, basic monitoring is enabled but enhanced monitoring and CloudWatch Logs require manual configuration.
References
CIS Controls
| Controls Version | Control | IG 1 | IG 2 | IG 3 |
|---|---|---|---|---|
| v8 | 8.1 Establish and Maintain an Audit Log Management Process | x | x | x |
| v7 | 6.2 Activate audit logging | x | x | x |
Profile
Level 1 | Manual