Help Center/ Config/ User Guide/ Resource Compliance/ Built-In Policies/ GaussDB/ Slow Query Log Collection Is Enabled
Updated on 2025-08-25 GMT+08:00

Slow Query Log Collection Is Enabled

Rule Details

Table 1 Rule details

Parameter

Description

Rule Name

gaussdb-instance-enable-slowLog

Identifier

gaussdb-instance-enable-slowLog

Description

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

Tag

gaussdb

Trigger Type

Configuration change

Filter Type

gaussdb.instance

Rule Parameters

None

Application Scenarios

GaussDB allows you to download slow query logs and error logs. Slow query logs help you locate slow SQL statement execution problems. Error logs help you locate instance problems. For details, see Downloading Error Logs and Slow Query Logs of a GaussDB Instance.

Solution

The error log collection is enabled by default. No action is required.

Rule Logic

  • If slow query log collection is disabled, the GaussDB instance is non-compliant.
  • If slow query log collection is enabled, the GaussDB instance is compliant.