I have hosted an ECS Fargate cluster that is using the AWS logs driver and pushing logs to CloudWatch, no issues on the awslog driver. Now what I want to do is push the logs directly from the ECS cluster to an S3 bucket.
So I am expecting to use AWS Athena to query the logs from S3. Can Firelens Fluent be the best bet? Please let me know if you guys have any solution to this process.
Currently,
Firelens
is the best tool for exporting logs from ECS Fargate to S3 bucket. FireLens works with both Fluent Bit and Fluentd log forwarders. However, I would recommend you to useFluent Bit
as it is more efficient thanFluentd
.For more information, you can refer.