Control: Ensure that the 'Log_min_messages' Flag for a Alloy DB Instance is set at minimum to 'Warning'
Description
The log_min_messages 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.
Usage
Run the control in your terminal:
powerpipe control run gcp_compliance.control.alloydb_instance_log_min_messages_database_flag_error
Snapshot and share results via Turbot Pipes:
powerpipe loginpowerpipe control run gcp_compliance.control.alloydb_instance_log_min_messages_database_flag_error --share
SQL
This control uses a named query:
alloydb_instance_log_min_messages_database_flag_error