EKS clusters should have audit logging enabled
Description
This control checks whether an Amazon EKS cluster has audit logging enabled. The control fails if audit logging isn't enabled for the cluster. EKS control plane logging provides audit and diagnostic logs directly from the EKS control plane to Amazon CloudWatch Logs in your account. You can select the log types you need, and logs are sent as log streams to a group for each EKS cluster in CloudWatch. Logging provides visibility into the access and performance of EKS clusters. By sending EKS control plane logs for your EKS clusters to CloudWatch Logs, you can record operations for audit and diagnostic purposes in a central location.
Remediation
To enable audit logging for your EKS cluster, you need to configure the logging settings.
Steps
- Navigate to the Amazon EKS console
- Select your cluster
- Go to the 'Logging' tab
- Click 'Edit' to modify logging configuration
- Enable 'Audit' log type
- Save the configuration to enable audit logging
- Verify that audit logs are being sent to CloudWatch Logs