π Google Logging Log Metric Filter and Alerts for Audit Configuration Changes do not exist π’
- Contextual name: π Log Metric Filter and Alerts for Audit Configuration Changes do not exist π’
- ID:
/ce/ca/google/logging/configuration-changes-monitoring
- Located in: π Google Logging
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β
Google Cloud Platform (GCP) services write audit log entries to the Admin Activity and Data Access logs to help answer the questions of, "who did what, where, and when?" within GCP projects.
Cloud audit logging records information includes the identity of the API caller, the time of the API call, the source IP address of the API caller, the request parameters, and the response elements returned by GCP services. Cloud audit logging provides a history of GCP API calls for an account, including API calls made via the console, SDKs, command-line tools, and other GCP services.
Rationaleβ
Admin activity and data access logs produced by cloud audit logging enable security analysis, resource change tracking, and compliance auditing.
Configuring the metric filter and alerts for audit configuration changes ensures the recommended state of audit configuration is maintained so that all activities in the project are audit-able at any point in time.
Impactβ
Enabling of logging may result in your project being charged for the additional logs usage.
... see more
Remediationβ
Remediationβ
From Google Cloud Consoleβ
Create the prescribed log metricβ
Go to
Logging/Logs-based Metrics
by visiting https://console.cloud.google.com/logs/metrics and click "CREATE METRIC".Click the down arrow symbol on the
Filter Bar
at the rightmost corner and selectConvert to Advanced Filter
.Clear any text and add:
protoPayload.methodName="SetIamPolicy"
AND protoPayload.serviceData.policyDelta.auditConfigDeltas:*Click
Submit Filter
. Display logs appear based on the filter text entered by the user.In the
Metric Editor
menu on the right, fill out the name field. SetUnits
to1
(default) andType
toCounter
. This will ensure that the log metric counts the number of log entries matching the user's advanced logs query.Click
Create Metric
.Create a prescribed Alert Policyβ
- Identify the new metric the user just created, under the section
User-defined Metrics
at https://console.cloud.google.com/logs/metrics.- Click the 3-dot icon in the rightmost column for the new metric and select
Create alert from Metric
. A new page opens.... see more
policy.yamlβ
Linked Framework Sectionsβ
Section | Sub Sections | Internal Rules | Policies | Flags |
---|---|---|---|---|
πΌ CIS GCP v3.0.0 β πΌ 2.5 Ensure That the Log Metric Filter and Alerts Exist for Audit Configuration Changes - Level 1 (Automated) | 1 | |||
πΌ Cloudaware Framework β πΌ Logging and Monitoring Configuration | 49 |