Skip to main content

Decide on the Application Service Log Destination for ECS

Context and Problem Statement

Should logs be sent to datadog or log only to cloudwatch logs?

Considered Options

Option 1. Fluent Bit sidecar is required for ECS Fargate

In addition to your application container, your task definition needs to specify a Fluent Bit sidecar container that’s responsible for routing logs to Datadog. AWS provides an aws-for-fluent-bit Docker image you can use to create the sidecar container.(source)

Pros

  • Recommended by Datadog

  • Works without much configuration

  • Prior art for this

Cons

  • Sidecar required

  • Fargate cpu/mem requirements would go up per task

  • More expensive due to fargate pricing is by cpu/memory