Check ID: logging_sink_created
Provider: GCP
Service: logging
Severity: MEDIUM
Categories: logging, forensics-ready
Resource type: logging.googleapis.com/LogSink

What this check verifies

Cloud Logging project contains at least one sink that exports a copy of all log entries to a destination for centralized retention or processing

Risk

Without exporting all logs, audit evidence can expire or be altered in-project, reducing the availability and integrity of telemetry. This hinders threat detection and forensics, prevents cross-project correlation, and can let attacker actions evade scrutiny after log rotation or deletion.

Recommendation

Create a centralized export sink that routes all logs to a secured, durable, preferably immutable destination with extended retention. Apply least privilege to sink identities, separate duties by isolating destinations, use defense in depth (encryption, access controls), and monitor sink health for continuity.

Remediation

gcloud logging sinks create <example_resource_name> logging.googleapis.com/projects/<example_resource_id>

References

Where this check fires

This check runs on every scheduled scan against your GCP account. Findings appear at Cloud Security → Findings filterable by Check ID = logging_sink_created. To re-evaluate after a fix, hit Run now on the account’s schedule under Cloud Security → Schedules — the next scan re-checks this control and marks the finding fixed or keeps it persistent.
← Back to GCP checks