Skip to content

Instantly share code, notes, and snippets.

View rulai-jianfang's full-sized avatar

Jian Fang rulai-jianfang

  • Rul.ai
  • Campbell, ca 95008
View GitHub Profile
@rulai-jianfang
rulai-jianfang / awslogs.md
Created April 22, 2019 17:41 — forked from achautha/awslogs.md
Monitor Docker container logs with AWS CloudWatch

Monitor Docker container logs with AWS CloudWatch

In this post, we are going to see how to monitor docker logs from AWS Cloudwatch logs. Docker supports different logging drivers one of which is awslogs

For this excersice, Docker container need NOT be running on EC2. We can send docker logs from anywhere to AWS.

Prerequisite

  • Ubuntu 14.04
  • Docker version 1.12 and above