Push ECS Fargate Container logs directly to S3 bucket

2.3k Views Asked by At

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.

1

There are 1 best solutions below

4
On

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 use Fluent Bit as it is more efficient than Fluentd.

For more information, you can refer.