Amazon-ecs-agent: Best practice to ship ECS agent logs to Cloudwatch Logs?

Created on 17 Jan 2018  路  5Comments  路  Source: aws/amazon-ecs-agent

Hi,

is there a best practice recommended by the ECS agent team to ship ECS agents logs to Cloudwatch Logs?

Using the Cloudwatch logs collector? Can we expect native shipping of logs directly from the agent?

Thanks,

kinquestion

Most helpful comment

Is there an equivalent to doing that on Windows ECS cluster instances?

All 5 comments

Hi @melo, thank you for reaching out to us regarding this. Please take a look at our documentation page for more information on how to do this.

Thanks,
Anirudh

@aaithal sorry if I wasn't clear, I wasn't talking about container instance logs, we already ship those to Cloudwatch Logs.

I'm talking about the container agent itself, the ECS Agent logs, that currently are written in the /var/log/ecs/ directory on each of our EC2 instances that are part of the ECS cluster.

I want to ship those logs to Cloudwatch.

Thank you,

Right, the documentation page I linked do talk about how that can be done. If you search for /var/log/ecs in that page, you should be able to spot it, in this section.

@aaithal my apologies, I missed that one...

Thank you for your time.

Is there an equivalent to doing that on Windows ECS cluster instances?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

leonblueconic picture leonblueconic  路  3Comments

pspanchal picture pspanchal  路  3Comments

flowirtz picture flowirtz  路  5Comments

AlexShuraits picture AlexShuraits  路  4Comments

radenui picture radenui  路  6Comments