Enable and Analyze Data Access Logs in GCP
📖 Scenario: You are a cloud administrator for a company using Google Cloud Platform (GCP). You want to enable data access logs for a specific Cloud Storage bucket to monitor who accesses the data. Then, you want to query these logs to find access patterns.
🎯 Goal: Enable data access logs for a Cloud Storage bucket and write a query to analyze the logs in BigQuery.
📋 What You'll Learn
Enable data access logs for a Cloud Storage bucket named
my-data-bucket.Create a sink to export logs to a BigQuery dataset named
data_access_logs.Write a BigQuery SQL query to count the number of accesses per user.
Use exact names:
my-data-bucket, data_access_logs, access_logs_sink.💡 Why This Matters
🌍 Real World
Monitoring data access is critical for security and compliance in cloud environments. This project shows how to enable and analyze data access logs in GCP.
💼 Career
Cloud administrators and security engineers often need to configure logging and analyze access patterns to protect data and meet audit requirements.
Progress0 / 4 steps