💼 6.2.4 Ensure ‘Log_statement’ Database Flag for Cloud SQL PostgreSQL Instance Is Set Appropriately - Level 2 (Automated)
- Contextual name: 💼 6.2.4 Ensure ‘Log_statement’ Database Flag for Cloud SQL PostgreSQL Instance Is Set Appropriately - Level 2 (Automated)
- ID:
/frameworks/cis-gcp-v3.0.0/06/02/04
- Located in: 💼 6.2 PostgreSQL Database
Description
The value of log_statement
flag determined the SQL statements that are logged. Valid values are:
none
ddl
mod
all
The value ddl
logs all data definition statements.
The value mod
logs all ddl statements, plus data-modifying statements.
The statements are logged after a basic parsing is done and statement type is determined, thus this does not logs statements with errors. When using extended query protocol, logging occurs after an Execute message is received and values of the Bind parameters are included.
A value of 'ddl' is recommended unless otherwise directed by your organization's logging policy.
Similar
- Internal
- ID:
dec-c-93dab3dc
- ID:
Sub Sections
Section | Sub Sections | Internal Rules | Policies | Flags |
---|
Policies (1)
Policy | Logic Count | Flags |
---|---|---|
📝 Google Cloud PostgreSQL Instance Log_statement Database Flag is not set appropriately 🟢 | 1 | 🟢 x6 |