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

The Slow Query Log Is Enabled

Rule Details

Table 1 Rule details

Parameter

Description

Rule Name

gaussdb-mysql-instance-enable-slowlog

Identifier

gaussdb-mysql-instance-enable-slowlog

Description

If the slow query log is not enabled for a TaurusDB instance, this instance is non-compliant.

Tag

taurusdb

Trigger Type

Configuration change

Filter Type

gaussdbformysql.instance

Rule Parameters

None

Application Scenarios

You can download slow query logs of TaurusDB instances. Slow query log allows you to:

  • Record SQL queries whose execution duration exceeds the threshold.
  • Optimize performance through slow query analysis.
  • Monitor database resource usage to prevent resource exhaustion.

Solution

Enable LTS slow query logging. For details, see Configuring Log Reporting.

Rule Logic

  • If slow query logging is not enabled for a TaurusDB instance, this instance is non-compliant.
  • If slow query logging is enabled for a TaurusDB instance, this instance is compliant.