🛡️ Google GCE Firewall Rule logging is disabled🟢
- Contextual name: 🛡️ GCE Firewall Rule logging is disabled🟢
- ID:
/ce/ca/google/vpc/firewall-rule-logging - Tags:
- Policy Type:
COMPLIANCE_POLICY - Policy Categories:
SECURITY
Logic
Description
Description
This policy identifies Google GCE Firewall Rules that do not have logging enabled. Enabling firewall rule logging allows you to audit, verify, and analyze the effects of your firewall rules within Google Cloud VPC networks.
Rationale
Firewall rule logging provides visibility into the network traffic that is allowed or denied by your firewall rules. Capturing these logs is critical for security auditing, monitoring unauthorized access attempts, and troubleshooting connectivity issues. Without logging, it becomes difficult to perform forensic analysis during security incidents or to validate that firewall rules are functioning as intended.
Impact
Enabling logging may result in additional costs for log storage and processing within Cloud Logging.
Audit
This policy flags a Google GCE Firewall Rule as
INCOMPLIANTif itsLog Stateis set to Disabled.
Remediation
Remediation
Enable Firewall Rule Logging
Enabling logging on firewall rules allows you to capture traffic information for auditing, monitoring, and troubleshooting purposes.
From gcloud CLI
```sh
gcloud compute firewall-rules update {{firewall-rule-name}} \
--enable-logging
```Consideration
After enabling logging, traffic matching this rule will be captured in Cloud Logging, which may incur additional costs.