Loading controls...
Control: Ensure that the 'log_min_duration_statement' database flag for Cloud SQL PostgreSQL instance is set to '-1' (disabled)
Description
The log_min_duration_statement flag defines the minimum amount of execution time of a statement in milliseconds where the total duration of the statement is logged. Ensure that log_min_duration_statement is disabled, i.e., a value of -1 is set.
Usage
Run the control in your terminal:
steampipe check terraform_gcp_compliance.control.sql_instance_postgresql_log_min_duration_statement_database_flag_disabled
Snapshot and share results via Steampipe Cloud:
steampipe loginsteampipe check --share terraform_gcp_compliance.control.sql_instance_postgresql_log_min_duration_statement_database_flag_disabled
SQL
This control uses a named query:
sql_instance_postgresql_log_min_duration_statement_database_flag_disabled