QuestionQ77

VerifiedImplementing observability practices and troubleshooting issues

You are configuring Cloud Logging sinks to export log entries from Cloud Logging to BigQuery for later analysis. Your organization has a Google Cloud folder named Dev that contains development projects and a folder named Prod that contains production projects. Log entries from development projects must be exported to dev_dataset, and log entries from production projects must be exported to prod_dataset. You need to minimize the number of log sinks you create and ensure that the log sinks also apply to future projects. What should you do?

Explanation

A folder-level aggregated sink configured to include child resources routes logs from all projects beneath that folder, including projects added later. Creating one aggregated sink in Dev with dev_dataset as its BigQuery destination and one in Prod with prod_dataset as its destination meets the separate-routing requirement with the fewest sinks.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!