π 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
- Located in: π Google Load Balancing
Flagsβ
- π’ Policy with categories
- π’ Policy with type
- π’ Production policy
Our Metadataβ
- Policy Type:
COMPLIANCE_POLICY
- Policy Category:
SECURITY
Similar Policiesβ
- Cloud Conformity
Logicβ
- π§ prod.logic.yaml π’
Descriptionβ
Descriptionβ
Logging enabled on a HTTPS Load Balancer will show all network traffic and its destination.
Rationaleβ
Logging will allow you to view HTTPS network traffic to your web applications.
Impactβ
On high use systems with a high percentage sample rate, the logging file may grow to high capacity in a short amount of time. Ensure that the sample rate is set appropriately so that storage costs are not exorbitant.
Auditβ
From Google Cloud Consoleβ
- From Google Cloud home open the Navigation Menu in the top left.
- Under the
Networking
heading selectNetwork services
.- Select the HTTPS load-balancer you wish to audit.
- Select
Edit
thenBackend Configuration
.- Select
Edit
on the corresponding backend service.- Ensure that
Enable Logging
is selected. Also ensure thatSample Rate
is set to an appropriate level for your needs.From Google Cloud CLIβ
Run the following command
gcloud compute backend-services describe <serviceName>
Ensure that
enable-logging
is enabled andsample rate
is set to your desired level.... see more
Remediationβ
Remediationβ
From Google Cloud Consoleβ
- From Google Cloud home open the Navigation Menu in the top left.
- Under the
Networking
heading selectNetwork services
.- Select the HTTPS load-balancer you wish to audit.
- Select
Edit
thenBackend Configuration
.- Select
Edit
on the corresponding backend service.- Click
Enable Logging
.- Set
Sample Rate
to 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 <serviceName> --region=REGION --enable-logging --logging-sample-rate=<percentageAsADecimal>