Remediation
From Google Cloud Consoleβ
- From Google Cloud home, open the Navigation Menu in the top left.
- Under the
Networkingheading, selectNetwork services. - Select the HTTPS load balancer you want to update.
- Select
Edit, thenBackend Configuration. - Select
Editon the corresponding backend service. - Click
Enable Logging. - Set
Sample Rateto a desired value. This is a percentage as a decimal point. 1.0 is 100%.
From Google Cloud CLIβ
-
Run the following command:
gcloud compute backend-services update {{service-name}} \
--region={{region}} \
--enable-logging \
--logging-sample-rate={{percentage-as-a-decimal}}