π‘οΈ Google GKE Cluster Logging is not enabledπ’
- Contextual name: π‘οΈ Cluster Logging is not enabledπ’
- ID:
/ce/ca/google/gke/cluster-logging - Tags:
- π’ Policy with categories
- π’ Policy with type
- π’ Production policy
- Policy Type:
COMPLIANCE_POLICY - Policy Categories:
SECURITY,RELIABILITY
Statsβ
not available
Logicβ
- π§ prod.logic.yamlπ’
Similar Policiesβ
- Internal:
dec-x-40a68b82
Similar Internal Rulesβ
| Rule | Policies | Flags |
|---|---|---|
| βοΈ dec-x-40a68b82 | 1 |
Descriptionβ
Descriptionβ
This policy identifies that Cloud Logging is enabled for all Google GKE Clusters.
Rationaleβ
Enabling logging for GKE clusters provides detailed insights into the behavior of the control plane, nodes, and running applications. These logs are essential for troubleshooting issues, monitoring performance, and detecting security incidents.
By default, GKE collects Audit logs, System logs, and Application logs.
Impactβ
GKE logs are exported to Cloud Logging. Enabling logging may incur additional costs associated with Cloud Logging usage.
Auditβ
This policy marks a Google GKE Cluster as
INCOMPLIANTifLogging Serviceis not set to logging.googleapis.com/kubernetes.Default Valueβ
Logging is enabled by default starting in GKE version 1.14.
Legacy Logging and Monitoring support is enabled by default for earlier versions.
Referencesβ
- https://cloud.google.com/stackdriver/docs/solutions/gke/observing
- https://cloud.google.com/stackdriver/docs/solutions/gke/managing-logs
- https://cloud.google.com/stackdriver/docs/solutions/gke/installing
... see more
Remediationβ
Remediationβ
To ensure comprehensive logging for troubleshooting, auditing, and security purposes, Cloud Logging should be enabled for GKE clusters.
Enable Cloud Logging on an Existing Clusterβ
From Google Cloud CLIβ
```sh
gcloud container clusters update {{cluster-name}} \
--location={{location}} \
--logging=SYSTEM,WORKLOAD,API_SERVER
```