Soru

Zorluk: KolayMonitoring, Logging, and Observability Integration

A cloud operations team wants to reduce overall Cloud Logging ingestion and storage costs by filtering out non-essential debug logs before they are written to the default log bucket, while preserving high-severity error logs for operational monitoring. Which approach aligns with Google Cloud recommended practices for controlling log ingestion costs?

  1. Configure a log exclusion filter in the log router sink specifying severe or error severity levels to be retained while excluding debug entries.Cevap
  2. B
    Create an aggregate log exclusion filter that drops all log entries originating from virtual machine resources regardless of severity level.
  3. C
    Assign the primitive Viewer role to all instance service accounts to limit their authority to transmit logs to Cloud Logging.
  4. D
    Deploy a VPC Service Controls perimeter around Cloud Logging to prevent debug log entries from traversing network interfaces.

Cevap

The optimal approach is to configure a log exclusion filter in the log router sink that targets debug-severity log entries while keeping high-severity entries.
Configuring exclusion filters in the log router allows organizations to drop specific low-priority logs like debug records before they enter log buckets, effectively reducing ingestion and storage costs while retaining vital error logs.

Adım Adım Çözüm

1
Identify the requirement to reduce ingestion volume specifically for low-value debug logs without missing critical errors.
Recognize that log router exclusion filters inspect log entries prior to bucket ingestion.
Excluding log entries at the router prevents storage costs while maintaining fine-grained control over severity levels.
2
Evaluate Google Cloud Logging router filter syntax to drop `severity < ERROR` or specific `severity = DEBUG` records.
Targeted exclusion criteria ensure debug entries are filtered out while critical errors pass through to the log sink.
Fine-grained filtering avoids dropping important diagnostic data.

Anahtar Kavram

Cloud Logging Log Router Exclusion Filters
Bu soruyu puanla