An enterprise e-commerce platform processes high-volume transaction traffic across Google Kubernetes Engine (GKE) clusters and Compute Engine instance groups. The operations team must design a centralized observability and logging strategy that satisfies three core requirements: route high-volume HTTP 200 OK access logs to Cloud Storage for cost-effective long-term compliance storage, stream application exception logs and high-severity errors to BigQuery for real-time security and operational analytics, and guarantee that no critical system errors or security audit logs are accidentally omitted during ingestion filter tuning. Which architectural design best meets these requirements while preventing operational log loss?
- Configure Log Router sinks with fine-grained inclusion filters that direct audit logs and high-severity errors to BigQuery, while creating a separate Cloud Storage sink with explicit exclusion filters scoped strictly to HTTP 200 OK payload statuses.Cevap
- BApply a broad log exclusion filter with severity thresholds set to drop all web service log entries at the project `_Default` log bucket level, relying on Cloud Monitoring custom metrics to detect application failures.
- CGrant the primitive Owner role to service accounts running custom log collection daemons on GKE nodes so they can dynamically bypass Log Router filters and write directly to destination storage buckets.
- DConfigure Log Router sinks to export all logs to external Cloud Storage buckets across project boundaries relying solely on IAM destination permissions, without establishing VPC Service Controls security perimeters.
Cevap
The optimal architecture configures Cloud Logging Log Router sinks with fine-grained inclusion filters to route audit and error logs to BigQuery, alongside a dedicated sink to Cloud Storage using narrow exclusion filters specifically targeted at low-severity HTTP access logs.
Configuring Cloud Logging Log Router sinks with specific inclusion filters for audit and error logs combined with targeted exclusion filters for low-severity HTTP access logs fulfills all analytical and compliance requirements while protecting against accidental loss of operational visibility.
Adım Adım Çözüm
Anahtar Kavram
Cloud Logging Log Router Sinks and Exclusion Filters
Tahmini Süre:2m 0s