AWS Container Service - 什么是日志记录最佳实践?

AWS Container Service - what is the logging best practice?

我目前的方法是将每个容器的日志记录到标准输出,然后让 docker 将其发送到系统日志,或者如果容器无法执行标准输出,则将系统日志发送到远程系统日志,并将 logstash 设置为系统日志接收器。

AWS 是否提供任何我应该考虑的日志记录工具?

ECS 与 Cloudwatch 日志集成。

You can configure your container instances to send log information to CloudWatch Logs. This enables you to view different logs from your container instances in one convenient location. This topic helps you get started using CloudWatch Logs on your container instances that were launched with the Amazon ECS-optimized AMI.

http://docs.aws.amazon.com/AmazonECS/latest/developerguide/using_cloudwatch_logs.html#configure_cwl_agent

http://docs.aws.amazon.com/AmazonECS/latest/developerguide/using_awslogs.html