Which combination of steps will meet these requirements?
(Choose two.)
Install the Amazon CloudWatch agent on the Apache HTTP servers. Configure the CloudWatch agent to push the logs to an Amazon Simple Queue Service (Amazon SQS) queue.
Install the Amazon CloudWatch agent on the Apache HTTP servers. Configure the CloudWatch agent to push the logs to the Amazon Kinesis Data Firehose delivery stream.
Install the Amazon Kinesis agent on the Apache HTTP servers. Configure the Kinesis agent to push the logs to the Amazon Kinesis Data Firehose delivery stream.
Create an AWS Lambda function that converts the logs to JSON format and pushes the results to the OpenSearch Service cluster. Consume the logs from the Amazon Simple Queue Service (Amazon SQS) queue by using the Lambda function.
Create an Amazon Kinesis Data Firehose delivery stream. Set the source as Direct PUT. Implement an AWS Lambda function to convert the logs to JSON format. Enable source record transformation on the Kinesis Data Firehose delivery stream for the Lambda function. Set the OpenSearch Service cluster as the destination.
Explanations:
CloudWatch agent does not natively push logs to Amazon SQS; it typically pushes logs to CloudWatch Logs, and SQS would not easily support near real-time processing for OpenSearch integration.
CloudWatch agent can push logs to Kinesis Data Firehose, but it does not handle JSON transformation, which is required before uploading to OpenSearch.
Kinesis agent is suitable for streaming Apache logs in near real-time to Kinesis Data Firehose, which is ideal for this use case and integrates well with other AWS services like Lambda.
Although Lambda can transform logs to JSON, using SQS as an intermediary could introduce latency, making it less efficient than Kinesis for near real-time log processing to OpenSearch.
Kinesis Data Firehose supports direct PUT and integrates with Lambda for source transformation to JSON. It allows setting OpenSearch as the destination, meeting all requirements for near real-time log processing and JSON conversion.