Detection

The CloudWatch agent sends each line of an application's stack traces as a separate log event. Each new application record starts with a timestamp; what should the administrator configure to preserve each stack trace as one event?

Show the answer

Correct answerD. A multiline start pattern matching timestamps

AWhy not this: Metric filters extract metric values from ingested events rather than combine lines into events.

BWhy not this: Subscription filters forward already-ingested events; they do not define how the agent groups file lines.

CWhy not this: Log stream names identify event streams; they do not control multiline event boundaries.

DWhy this is right: Matching each record's starting timestamp groups its continuation lines into the same log event.

The agent's multi_line_start_pattern identifies the beginning of each event, grouping subsequent lines until the next match. A subscription filter forwards events after ingestion and cannot repair event boundaries established by the agent.