Skip to content

HowGood/docker-cloudwatch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

howgood/docker-cloudwatch

This is a lightweight docker container that runs the Cloudwatch Logs agent. It is built on gliderlabs/alpine to be as minimal as possible.

Building the container

Because the cloudwatch logs agent seems to only be downloadable from an EC2 instance, this container can only be built on EC2.

$ docker build -t howgood/cloudwatch .

Setup

  1. Create a log configuration file, using the configuration options documented here.

  2. Run the container with your configuration file mounted into the container, and pass it as an option:

$ docker run \
    --volume=/path/to/my-cloudwatch.conf:/etc/cloudwatch/awslogs.conf:ro \
    howgood/cloudwatch \
      push --config-file /etc/cloudwatch/awslogs.conf

The default configuration file that Amazon provides is included as an example.

About

A containerized Cloudwatch Logs agent

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published