π‘οΈ Google Logging Log Sink for All Log Entries is not configuredπ’
- Contextual name: π‘οΈ Log Sink for All Log Entries is not configuredπ’
- ID:
/ce/ca/google/logging/sinks-configuration - Tags:
- π’ Policy with categories
- π’ Policy with type
- π’ Production policy
- Policy Type:
COMPLIANCE_POLICY - Policy Categories:
SECURITY
Logicβ
- π§ prod.logic.yamlπ’
Similar Policiesβ
- Cloud Conformity: Export All Log Entries Using Sinks
Descriptionβ
Descriptionβ
It is recommended to create a sink that exports copies of all log entries. This can help aggregate logs from multiple projects and export them to a Security Information and Event Management (SIEM) system.
Rationaleβ
Log entries are held in Cloud Logging. To aggregate logs, export them to a SIEM. To retain them longer, set up a log sink. Exporting involves writing a filter that selects the log entries to export and choosing a destination in Cloud Storage, BigQuery, or Cloud Pub/Sub. The filter and destination are held in an object called a sink. To ensure all log entries are exported, make sure no filter is configured for the sink. Sinks can be created in projects, organizations, folders, and billing accounts.
Impactβ
There are no costs or limitations in Cloud Logging for exporting logs, but the export destinations charge for storing or transmitting the log data.
Auditβ
From Google Cloud Consoleβ
- Go to
Logs Routerby visiting https://console.cloud.google.com/logs/router.- For every sink, click the 3-dot button for Menu options and select
View sink details.... see more
Remediationβ
Remediationβ
From Google Cloud Consoleβ
- Go to
Logs Routerby visiting https://console.cloud.google.com/logs/router.- Click on the arrow symbol with
CREATE SINKtext.- Fill out the fields for
Sink details.- Choose a Cloud Logging bucket in the
Select sink destinationdrop-down menu.- Choose a log bucket in the next drop-down menu.
- If an inclusion filter is not provided for this sink, all ingested logs will be routed to the destination provided above. This may result in higher than expected resource usage.
- Click
Create Sink.For more information, see https://cloud.google.com/logging/docs/export/configure_export_v2#dest-create.
From Google Cloud CLIβ
To create a sink to export all log entries in a Google Cloud Storage bucket:
gcloud logging sinks create {{sink-name}} storage.googleapis.com/{{destination-bucket-name}}Sinks can be created for a folder or organization, which will include all projects.
gcloud logging sinks create {{sink-name}} storage.googleapis.com/{{destination-bucket-name}} \
... [see more](remediation.md)