{
  "Provider": "gcp",
  "CheckID": "logging_sink_created",
  "CheckTitle": "Ensure there is at least one sink used to export copies of all the log entries.",
  "CheckType": [],
  "ServiceName": "logging",
  "SubServiceName": "",
  "ResourceIdTemplate": "",
  "Severity": "medium",
  "ResourceType": "Sink",
  "Description": "Ensure there is at least one sink used to export copies of all the log entries.",
  "Risk": "If sinks are not created, logs would be deleted after the configured retention period, and would not be backed up.",
  "RelatedUrl": "",
  "Remediation": {
    "Code": {
      "CLI": "gcloud logging sinks create <project_id> <destination_bucket>",
      "NativeIaC": "",
      "Other": "https://www.trendmicro.com/cloudoneconformity/knowledge-base/gcp/CloudLogging/export-all-log-entries.html",
      "Terraform": ""
    },
    "Recommendation": {
      "Text": "It is recommended to create a sink that will export copies of all the log entries. This can help aggregate logs from multiple projects and export them to a Security Information and Event Management (SIEM).",
      "Url": "https://cloud.google.com/logging/docs/export"
    }
  },
  "Categories": [],
  "DependsOn": [],
  "RelatedTo": [],
  "Notes": ""
}
