Review GKE Cloud Logging integration

Enable required GKE log collection and verify delivery and retention.

Description

A legacy Deployment Manager configuration can omit loggingService and still use GKE’s default logging service. Check the live cluster settings and which system and workload logs it collects.

Potential impact

A Pod error excluded from collection may be missing from Cloud Logging during an investigation. Google Cloud records Admin Activity audit logs separately.

Remediation

Use supported tooling to select the components you need. Look for a recent event from the chosen workload or control-plane component in Logs Explorer. If it is missing, check write permissions and exclusion filters. Set log retention and reader access.

Examples

Standard support for Deployment Manager has ended. The second historical GKE request fragment sets loggingService: logging.googleapis.com/kubernetes. Supply location, network and node settings when creating a cluster.

Before

yaml
name: my-cluster

After

yaml
name: my-cluster
loggingService: logging.googleapis.com/kubernetes

References