Skip to main content

๐Ÿ’ผ 6.2.5 Ensure that the 'log_min_messages' database flag for Cloud SQL PostgreSQL instance is set appropriately

  • Contextual name: ๐Ÿ’ผ 6.2.5 Ensure that the 'log_min_messages' database flag for Cloud SQL PostgreSQL instance is set appropriately
  • ID: /frameworks/cis-gcp-v1.1.0/06/02/05
  • Located in: ๐Ÿ’ผ 6.2 PostgreSQL Database

Descriptionโ€‹

The 'log_min_error_statement' flag defines the minimum message severity level that is considered as an error statement. Messages for error statements are logged with the SQL statement. Valid values include 'DEBUG5', 'DEBUG4', 'DEBUG3', 'DEBUG2', 'DEBUG1', 'INFO', 'NOTICE', 'WARNING', 'ERROR', 'LOG', 'FATAL', and 'PANIC'. Each severity level includes the subsequent levels mentioned above.

Note: To effectively turn off logging failing statements, set this parameter to PANIC.

ERROR is considered the best practice setting. Changes should only be made in accordance with the organization's logging policy.

Similarโ€‹

  • Internal
    • ID: dec-c-bed9f447

Sub Sectionsโ€‹

SectionSub SectionsInternal RulesPoliciesFlags