Updated on 2024-12-10 GMT+08:00

CSS Clusters Have Slow Query Log Enabled

Rule Details

Table 1 Rule details

Parameter

Description

Rule Name

css-cluster-slowLog-enable

Identifier

css-cluster-slowLog-enable

Description

If a CSS cluster does not have slow query log enabled, this cluster is noncompliant.

Tag

css

Trigger Type

Configuration change

Filter Type

css.clusters

Configure Rule Parameters

None

Applicable Scenario

Elasticsearch and OpenSearch clusters provide deprecation logs, run logs, index slow logs, and search slow logs for users to trouble shoot related issues. For details, see Querying and Managing Elasticsearch Cluster Logs.

Solution

By default, CSS clusters provide slow query logs. If you need longer storage, you can dump the logs in to an OBS bucket. For details, see Modifying Basic Log Configurations.

Rule Logic

  • If a CSS cluster has slow query log disabled, this cluster is noncompliant.
  • If a CSS cluster has slow query log enabled, this cluster is compliant.