Severity: Medium
Description: This control ensures that logging is not set to OFF for all Rest APIs Stages in API gateway for all regions. There are two types of API logging in CloudWatch: execution logging and access logging. In execution logging, API Gateway manages the CloudWatch Logs. The process consists of creating log groups and log streams, and reporting to the log streams any caller's requests and responses.
Remediation Steps:
Perform following to enable logging for REST Api:
Login to the AWS Management Console at https://console.aws.amazon.com.
Navigate to o API Gateway console.
On the Stages pane, choose the Logs/Tracing tab
On the Logs/Tracing tab, under CloudWatch Settings, do the following to turn on execution logging: Choose the Enable CloudWatch Logs check box
You can choose from ERROR and INFO according to your logging requirements
Click on Save Changes.
Important:
Reference: