bottlerocket icon indicating copy to clipboard operation
bottlerocket copied to clipboard

Get ECS Agent logs to Cloudwatch Logs

Open pauldraper opened this issue 1 year ago • 3 comments

What I'd like:

I'd like to get ECS Agent logs into Cloudwatch Logs.

This is necessary to know what ECS task launch errors have happened from permissions, networking, or API limits.

Any alternatives you've considered:

Follow the manual process here to download a tarball from a running instance: https://github.com/bottlerocket-os/bottlerocket?tab=readme-ov-file#logs

But that is obviously pretty terrible log access.

pauldraper avatar Feb 10 '25 19:02 pauldraper

Hi, thanks for bringing this up. We'll take this as a feature request, and will discuss if we can prioritize this.

Sparksssj avatar Feb 11 '25 22:02 Sparksssj

Can you please take a look at this ticket and see if this is something you may want?

Sparksssj avatar Feb 12 '25 18:02 Sparksssj

We also run production ECS load on Bottlerocket, and need to be able to ship ecs-agent logs somewhere

I hope we don't have to switch back to AL2023 ECS hosts just to see ecs-agent logs

Ticket 2747 may help - but it's not clear to me if ecs-agent logs would be included

brian-mertens avatar Apr 23 '25 19:04 brian-mertens