Skip to main content
Version 1 Documentation
This is Version 1 documentation for the Cloud Posse Reference Architecture. To determine which version you're using, please see Version Identification. To understand why this version changed, please see the blog post.
Version: v1

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