π‘οΈ Google HTTP(S) Load Balancer Logging is not enabledπ’
- Contextual name: π‘οΈ HTTP(S) Load Balancer Logging is not enabledπ’
- ID:
/ce/ca/google/load-balancing/load-balancer-logging - Tags:
- π’ Policy with categories
- π’ Policy with type
- π’ Production policy
- Policy Type:
COMPLIANCE_POLICY - Policy Categories:
SECURITY
Logicβ
- π§ prod.logic.yamlπ’
Similar Policiesβ
- Cloud Conformity: Enable Logging for HTTP(S) Load Balancers
Descriptionβ
Descriptionβ
Logging on an HTTPS load balancer records network traffic and its destination.
Rationaleβ
Logging allows you to view HTTPS network traffic to your web applications.
Impactβ
On high-use systems with a high sample rate, log files may grow quickly. Ensure the sample rate is set appropriately so that storage costs remain reasonable.
Auditβ
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 audit.
- Select
Edit, thenBackend Configuration.- Select
Editon the corresponding backend service.- Ensure that
Enable Loggingis selected. Also ensure thatSample Rateis set to an appropriate level for your needs.From Google Cloud CLIβ
Run the following command:
gcloud compute backend-services describe {{service-name}}Ensure that
enable-loggingis enabled andsample rateis set to your desired level.Default Valueβ
By default, logging for HTTPS load balancing is disabled. When logging is enabled, the default sample rate is 1.0 (100%). Ensure this value fits your organizationβs needs to avoid high storage costs.
... see more
Remediationβ
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}}