A logistics platform runs a fleet of delivery tracking services on Amazon EC2 instances. The tracking application outputs internal transaction metrics to a file located at `/var/log/tracking/session.log`. During peak hours, a cron job on the server executes a log rotation script that compresses and renames the active log file to `/var/log/tracking/archive-[timestamp].log.gz` and creates a new empty `/var/log/tracking/session.log`. The operations team uses the Unified CloudWatch Agent to monitor these metrics, but they notice that metrics are missing for hours at a time, specifically starting immediately after each log rotation event. Which configuration change will ensure that the CloudWatch Agent continuously collects the log files without interruption?
- AModify the CloudWatch Agent configuration by setting the `file_path` parameter to `/var/log/tracking/session.log` and enabling the `publish_multi_line_logs` option to process the compressed archives.
- BConfigure the S3 bucket policy where the logs are archived to allow the EC2 IAM role to perform `s3:PutObject` on `/var/log/tracking/` path prefixes.
- Update the agent configuration file to use the wildcard path `/var/log/tracking/session*` in the `file_path` parameter, ensuring that the agent dynamically tracks both the active and renamed log files.Answer
- DChange the `file_path` parameter in the agent configuration to `/var/log/tracking/session.log` and configure the agent to restart automatically via a systemd trigger whenever a log rotation event occurs.