Docker image with:
which tails docker containers logs and sends them to cloudwatch logs.
Fluentd config is created using /app/config/fluentd.tmpl docker-gen template and could be easily overwritten in custom Dockerfile:
ADD my-custom-fluentd-template.tmpl /app/config/fluentd.tmpl
docker run -d -v -e AWS_REGION='us-east-1' /var/run/docker.sock:/tmp/docker.sock -v /var/lib/docker:/var/lib/docker knservis/fluentd
Logs will be sent to a a group called docker-logs and the stream name will be the docker conatiner name.
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": [
"logs:*"
],
"Resource": [
"arn:aws:logs:us-east-1:*:*"
]
}
]
}
Content type
Image
Digest
sha256:0f0ddd934…
Size
140.8 MB
Last updated
about 11 years ago
docker pull knservis/fluentd