More Info:

Ensures all Kubernetes clusters have logging enabled. This setting should be enabled to ensure Kubernetes control plane logs are properly recorded.

Risk Level

Medium

Address

Security

Compliance Standards

HITRUST, SOC2, NISTCSF, PCIDSS

Triage and Remediation

Remediation

To remediate the misconfiguration “Logging Should Be Enabled” for GCP using GCP console, please follow the below steps:

  1. Login to GCP console (https://console.cloud.google.com/).
  2. Select the project for which you want to enable logging.
  3. In the left navigation menu, select “Logging”.
  4. Click on “Log Exports” tab.
  5. Click on “Create Export” button.
  6. Select the logs which you want to export to Stackdriver Logging.
  7. Choose the destination where you want to export logs to (e.g. BigQuery, Pub/Sub, Cloud Storage).
  8. Configure the export settings as per your requirement.
  9. Click on “Create” button.

Once the above steps are completed, logging will be enabled for your GCP project and you will be able to view logs in the Stackdriver Logging console.

Additional Reading: