How should an operations team stream application logs from Amazon Linux 2 EC2 instances to CloudWatch Logs in near real time?
A. Install the CloudWatch unified agent (amazon-cloudwatch-agent) on each instance and configure it to tail the application log files.
B. Use AWS DataSync to copy log files from the instance file system to an S3 bucket, then import them to CloudWatch Logs.
C. Configure the EC2 instance's syslog daemon to forward all messages to a CloudWatch Logs endpoint via UDP.
D. Enable EC2 detailed monitoring in the console, which automatically captures application logs and sends them to CloudWatch Logs.
Install and configure the unified CloudWatch agent (amazon‑cloudwatch‑agent) on each instance to tail the log files and stream them to CloudWatch Logs.