Adding log visibility to Amazon ECS with Papertrail

Heads up! This article was written over 9 years ago. While it may still be helpful, please verify any information, as my perspectives and practices may have evolved.

Amazon ECS provides access to Docker’s logging driver settings at the container level through the standard task definition interface.

Under “Storage and Logging” is the ability to define a log driver and log options. For Papertrail select syslog as the log driver and add a single log option: syslog-address containing your Papertrail log destination, e.g. udp://logs1.papertrailapp.com:10010.