More Info:

Load balancers regional backend services should have request logging enabled. Logging requests to Load Balancer endpoints is a helpful way of detecting and investigating potential attacks.

Risk Level

Medium

Address

Security, Operational Maturity

Compliance Standards

SOC2, GDPR, HITRUST, NISTCSF, PCIDSS, FedRAMP

Triage and Remediation

Remediation

To remediate the misconfiguration “Load Balancer Regional Backend Services Should Have Logging Enabled” for GCP using GCP console, follow the steps below:

  1. Go to the Google Cloud Console and select the project in which the load balancer is configured.

  2. In the navigation menu, select “Network services” and then select “Load balancing”.

  3. Select the load balancer for which you want to enable logging.

  4. Click on the “Backend services” tab.

  5. Select the backend service for which you want to enable logging.

  6. Click on the “Edit” button at the top of the page.

  7. In the “Logging” section, select the checkbox next to “Enable logging”.

  8. Select the log type from the drop-down menu. You can choose from “Stackdriver Logging”, “Cloud Storage”, and “BigQuery”.

  9. Enter the destination details for the selected log type. For example, if you select “Cloud Storage”, enter the bucket name and folder path.

  10. Click on the “Save” button to save the changes.

Once you have completed these steps, the logging feature will be enabled for the selected backend service in the load balancer. You can repeat these steps for all the backend services in the load balancer to ensure that logging is enabled for all of them.

Additional Reading: