Updated on 2025-08-25 GMT+08:00

RDS Instances Support Slow Query Logs

Rule Details

Table 1 Rule details

Parameter

Description

Rule Name

rds-instance-enable-slowLog

Identifier

rds-instance-enable-slowLog

Description

If slow query logging is not enabled for an RDS DB instance, this instance is non-compliant.

Tag

rds

Trigger Type

Configuration change

Filter Type

rds.instances

Rule Parameters

None

Application Scenarios

Slow query logs record statements that exceed the execution duration threshold. You can view log details and statistics to identify statements that are executing slowly and optimize the statements. You can also download slow query logs for service analysis.

Solution

Configure slow log collection. For details, see Log Configuration Management.

Rule Logic

  • If slow query logging is not enabled for an RDS DB instance, this instance is non-compliant.
  • If slow query logging is enabled for an RDS DB instance, this instance is compliant.