Soru

Zorluk: KolayCloudWatch Logs and Metric Filters

A SysOps Administrator is configuring Amazon CloudWatch metric filters to monitor application logs stored in a CloudWatch log group. Which of the following statements correctly describe the characteristics and behavior of CloudWatch Logs metric filters? (Select TWO.)

  1. They can extract numeric values from JSON-formatted log messages to publish custom metrics.Cevap
  2. They do not modify or alter the original log events stored within the log group.Cevap
  3. C
    They automatically delete log events that do not match the filter pattern to optimize log group storage and retention.
  4. D
    They automatically change the metric reporting interval to detailed monitoring with 1-second resolution.
  5. E
    They directly execute AWS Systems Manager Automation runbooks whenever a matching log pattern is detected.

Cevap

CloudWatch Logs metric filters extract numeric values from JSON-formatted log messages to publish custom metrics and do not modify or alter the original log events stored within the log group.
The correct answers are the statements that metric filters can extract numeric values from JSON-formatted log messages to publish custom metrics, and that they do not modify or alter the original log events stored within the log group. These accurately reflect how metric filters operate on log data.

Adım Adım Çözüm

1
Evaluate the effect of metric filters on existing log data.
Confirm that metric filters are non-destructive and only read log events to count occurrences or extract values without changing the stored logs.
This establishes that the original log events remain unchanged in the log group.
2
Analyze metric extraction capabilities of CloudWatch metric filters.
Verify that metric filters can parse structured logs (like JSON) and extract numeric values to publish to custom CloudWatch metrics.
This confirms that numeric extraction from JSON log messages is a key feature of metric filters.

Anahtar Kavram

CloudWatch Logs metric filters define patterns to search for in log events and convert them into CloudWatch metrics without modifying the underlying log data.
Bu soruyu puanla