Benchmark: Logging
Description
This section contains recommendations for configuring Logging resources.
Usage
Install the mod:
mkdir dashboardscd dashboardspowerpipe mod initpowerpipe mod install github.com/turbot/steampipe-mod-gcp-complianceStart the Powerpipe server:
steampipe service startpowerpipe serverOpen http://localhost:9033 in your browser and select Logging.
Run this benchmark in your terminal:
powerpipe benchmark run gcp_compliance.benchmark.all_controls_loggingSnapshot and share results via Turbot Pipes:
powerpipe benchmark run gcp_compliance.benchmark.all_controls_logging --shareControls
- Ensure that retention policies on log buckets are configured using Bucket Lock
 - Ensure that the log metric filter and alerts exist for Audit Configuration changes
 - Ensure that the log metric filter and alerts exist for Custom Role changes
 - Ensure that the log metric filter and alerts exist for Custom Role changes including undelete operations
 - Ensure that the log metric filter and alerts exist for VPC Network Firewall rule changes
 - Ensure that the log metric filter and alerts exist for VPC network changes
 - Ensure that the log metric filter and alerts exist for VPC network route changes
 - Ensure log metric filter and alerts exist for project ownership assignments/changes
 - Ensure that the log metric filter and alerts exist for SQL instance configuration changes
 - Ensure that the log metric filter and alerts exist for Cloud Storage IAM permission changes
 - Ensure that sinks are configured for all log entries