Your application is hosted on AWS and experiences intermittent failures. You need to implement a logging strategy to capture and store relevant application logs that will assist you in troubleshooting the issue. Given the requirement for minimal performance impact on your application and the ability to analyze the logs within minutes of the logged events, which logging approach should you employ?
Manually push application logs to an Amazon S3 bucket for storage and eventual analysis.
Configure the application to use the Amazon CloudWatch Logs agent to send logs to CloudWatch for storage and analysis.
Use Amazon DynamoDB to store log data as soon as it is generated by the application.
Implement log streaming directly to Amazon Kinesis Data Firehose for immediate storage and analysis.