🚀Launch Week 10, September 22nd - 26th, 2025🚀
Steampipe Hub 
Hub
  • Plugins
  • Mods
  • Docs
  • Home
PluginsModsDocsHome
Plugins
turbot/gcp
GitHub Repo Stars
Overview
121
Tables
630
Queries
PowerpipeModsGitHub
steampipe plugin install gcpsteampipe plugin install gcp
Get Involved
Edit on GitHubDiscuss on Slack

Query: Ensure 'log_statement' database flag for Cloud SQL PostgreSQL instance is set appropriately

Description

The value of log_statement flag determined the SQL statements that are logged. Valid values are: 'none', 'ddl', 'mod', and 'all'.

Query

Tables used in this query:

  • gcp_sql_database_instance

Controls using this query:

  • 6.2.4 Ensure 'log_statement' database flag for Cloud SQL PostgreSQL instance is set appropriately
  • 6.2.4 Ensure 'Log_statement' Database Flag for Cloud SQL PostgreSQL Instance Is Set Appropriately
  • 6.2.4 Ensure 'Log_statement' Database Flag for Cloud SQL PostgreSQL Instance Is Set Appropriately
  • Ensure 'log_statement' database flag for Cloud SQL PostgreSQL instance is set appropriately

SQL

Steampipe
Steampipe
  • Hub
  • Docs
  • Blog
  • Changelog
Products
  • GuardrailsGuardrails
  • PipesPipes
  • SteampipeSteampipe
  • PowerpipePowerpipe
  • FlowpipeFlowpipe
  • TailpipeTailpipe
Turbot
  • Home
  • About us
  • We're hiring!
  • Contact us
Community

Our community of 3,000+ practitioners love to discuss Steampipe, cloud intelligence & security.

Slack logoJoin us on Slack →

System StatusLegalSecurity
Terms of UseSecurityPrivacy