turbot/gcp_compliance

Control: Ensure 'log_duration' database flag for Cloud SQL PostgreSQL instance is set to 'on'

Description

Enabling the log_duration setting causes the duration of each completed statement to be logged. This does not logs the text of the query and thus behaves different from the log_min_duration_statement flag. This parameter cannot be changed after session start.

Usage

Run the control in your terminal:

powerpipe control run gcp_compliance.control.sql_instance_postgresql_log_duration_database_flag_on

Snapshot and share results via Turbot Pipes:

powerpipe login
powerpipe control run gcp_compliance.control.sql_instance_postgresql_log_duration_database_flag_on --share

SQL

This control uses a named query:

sql_instance_postgresql_log_duration_database_flag_on

Tags