Managing operations · Topic 3 of 3

Cloud Audit Logs, Log Sinks, Security Command Center and Incidents

Configure Cloud Audit Logs and Data Access logs, export with aggregated sinks to a SIEM, monitor Security Command Center and handle incidents.

  • 6 min
  • Includes a diagram
In a nutshell
  • Admin Activity and System Event logs are always on and kept 400 days; Data Access is mostly off by default.
  • Configure Data Access logs per service with auditConfigs; exempt noisy service accounts.
  • Aggregated sinks at org or folder level capture all children; grant the writer identity access.

What it is

Cloud Audit Logs record who did what, where and when in Google Cloud. Log sinks route those logs to central storage or to external security tools. Security Command Center (SCC) turns configuration checks and threat detection into findings, and incident response turns findings into action.

Cloud Audit LogsAggregated sinkorganizationCentral bucket and SIEMSecurity Command CenterfindingsResponsecontain and fix

How it works

Types of audit logs

LogContentsOn by defaultRetention in Cloud Logging
Admin ActivityChanges to configuration and metadata, such as IAM changes or VM creationAlways, cannot be disabled400 days in the _Required bucket
System EventGoogle system actions that change resourcesAlways, cannot be disabled400 days in _Required
Data AccessReads of configuration (ADMIN_READ) and reads and writes of user data (DATA_READ, DATA_WRITE)No, except BigQuery30 days in _Default, configurable
Policy DeniedAccess refused by a security policy, such as VPC Service ControlsYes, can be excluded30 days in _Default, configurable

Data Access logs can be large and are charged, so enable them for the services that hold sensitive data. They are configured in the IAM policy's auditConfigs, at organization, folder or project level.

auditConfigs:
- service: storage.googleapis.com
  auditLogConfigs:
  - logType: DATA_READ
  - logType: DATA_WRITE
    exemptedMembers:
    - serviceAccount:backup@prod-app.iam.gserviceaccount.com

Key fields in each entry are protoPayload.authenticationInfo.principalEmail, protoPayload.methodName, protoPayload.resourceName and the caller's IP address.

Log sinks and aggregated sinks

An aggregated sink at the organization with include children collects audit logs from every project, including future ones, and sends them to a Pub/Sub topic on which its writer identity holds Publisher, for delivery to an external SIEM. A sink sends matching log entries to a destination. Every project has _Required and _Default sinks; you add your own.

DestinationUse
Cloud Logging bucketCentral searchable store, with Log Analytics and locked retention
Cloud StorageCheap long-term archive, with retention policies and Bucket Lock
BigQuerySQL analysis and dashboards
Pub/SubStreaming to external SIEM and SOAR tools
Another projectForward to a sink in a central project

An aggregated sink on an organization or folder with --include-children collects logs from every project below it, including future ones. An intercepting aggregated sink also stops those logs from reaching the child projects' own sinks.

gcloud logging sinks create org-audit-to-siem \
  pubsub.googleapis.com/projects/sec-logging/topics/siem-feed \
  --organization=123456789012 --include-children \
  --log-filter='logName:"cloudaudit.googleapis.com"'

The sink has a writer identity service account. Grant it permission on the destination, such as Pub/Sub Publisher on the topic, or no logs arrive.

Exporting to external security systems

TargetPath
SplunkAggregated sink to Pub/Sub, then the Dataflow Pub/Sub to Splunk template, or a Pub/Sub based add-on
Google Security OperationsDirect ingestion of Google Cloud logs and SCC findings
Other SIEMsPub/Sub subscription pulled by the SIEM, or files from Cloud Storage

Security Command Center

SCC is usually activated for the whole organization and collects findings from Google detectors and integrated services.

TierMain capabilities
StandardBasic posture management: findings from integrated services such as Sensitive Data Protection, findings export and notifications, limited Compliance Manager. New Standard activations do not include Security Health Analytics; organizations migrated from the legacy Standard tier keep a subset of its detectors
PremiumAll Security Health Analytics detectors with compliance mapping (CIS, PCI DSS, NIST, ISO 27001), Event Threat Detection, Container Threat Detection, VM Threat Detection, attack path simulation, security posture and custom modules

The Enterprise tier is deprecated and shuts down in May 2027, when its organizations move to Premium, so plan designs around Standard and Premium only.

OperationHow
Real-time alertsNotification configs publish matching findings to Pub/Sub
Analysis and reportingContinuous export of findings to BigQuery
Noise reductionMute rules for accepted risks, such as findings on a sandbox folder
AccessSCC roles, such as Security Center Admin Viewer or Findings Editor, at organization or folder level

Event Threat Detection reads logs to find threats such as anomalous IAM grants, malware or cryptomining connections, and data exfiltration from BigQuery.

Responding to and remediating incidents

PhaseGoogle Cloud actions
DetectSCC findings, log-based alerts in Cloud Monitoring, SIEM rules
TriageAudit logs for the principal and method; Log Analytics to scope impact
ContainDisable or delete keys and service accounts, remove IAM grants, isolate the VM with firewall rules, revoke sessions
PreserveSnapshot disks and export logs for forensics before rebuilding
Eradicate and recoverRebuild from trusted images; rotate credentials and keys
ImproveAdd organization policies, detectors or automation to prevent a repeat

Automate repeatable responses: an SCC notification to Pub/Sub can trigger a Cloud Run function that, for example, removes public access from a bucket.

A worked example

SCC Premium raises an Event Threat Detection finding: a service account key was used from an unknown country to grant Owner to an external account. The notification reaches the SOC through Pub/Sub and the SIEM.

The engineer deletes the key, removes the grant, and uses Admin Activity logs from the central bucket to list every action by that account. The fix is permanent: iam.disableServiceAccountKeyCreation and domain restricted sharing are enforced on the organization.

ETD findingPub/SubSIEM alertContaindelete key, remove grantAudit logsscope actionsPreventorg policies

How the exam asks about this

  • "Collect audit logs from all current and future projects into one place." An aggregated sink at the organization with include children.
  • "Auditors must see who read objects in a sensitive bucket." Enable Data Access logs (DATA_READ) for Cloud Storage on that project.
  • "Send critical Security Command Center findings to the on-call system in real time." A notification config publishing to Pub/Sub.

What to remember for the exam

  • Admin Activity and System Event logs are always on and kept 400 days; Data Access is mostly off by default.
  • Configure Data Access logs per service with auditConfigs; exempt noisy service accounts.
  • Aggregated sinks at org or folder level capture all children; grant the writer identity access.
  • Pub/Sub is the path to external SIEMs; Cloud Storage and locked buckets for long retention.
  • SCC Standard gives basic posture management only; Premium adds Security Health Analytics, threat detection, compliance and posture.
Watch out

A sink without permission for its writer identity fails silently from the user's point of view. Always grant the writer identity on the destination and check that logs arrive.

Common mistakes

Expecting Data Access logs to be on. Except for BigQuery, they must be enabled. Without them, no one can answer who read the data.

Creating sinks project by project. New projects are missed. Use an aggregated sink at organization or folder level.

Choosing SCC Standard for threat detection. Event, container and VM threat detection need Premium.

Check yourself

  • Which audit logs cannot be disabled?

    Admin Activity and System Event audit logs.

  • What must you do after creating a sink to a Pub/Sub topic in another project?

    Grant the sink's writer identity Pub/Sub Publisher on that topic.

  • Which SCC tier includes Event Threat Detection?

    Security Command Center Premium.

Topic 3 of 3 in Managing operations

Test yourself on Managing operations

The full Google Cloud Professional Cloud Security Engineer question bank has 749 questions, with timed practice exams and an explanation for every answer.

This study guide is independent and is not affiliated with, endorsed by, or sponsored by Google Cloud. Vendor names, certification names and exam codes are trademarks of their respective owners and are used for identification only.