This image can be used to setup a logging solution for based on Fluentd and Loggly
248
v1.1.0-loggly (fluentd/v1.1.0-loggly/Dockerfile)This image ships with Fluentd + the fluent-plugin-loggly plugin. Logs are forwarded to Loggly.
You can publish port 24224 and start forwarding your logs to Fluentd.
Example Compose file:
services:
fluentd:
image: jfahrer/fluentd:v1.1.0-loggly
ports:
- 24224:24224
environment:
- LOGGLY_TOKEN=ABC
logging:
driver: json-file
options:
max-size: 30m
max-file: 3
some_service:
logging:
driver: fluentd
options:
fluentd-address: 127.0.0.1:24224
tag: some.tag
You need to create and set a Customer Token in order to be able to forward the logs to Loggly. See the section about environment variables for more information.
LOGGLY_TOKEN_FILE: The file to read the Customer Token fromLOGGLY_TOKEN: The Customer Token that will be used to forward logs to Loggly. The token will be overwritten with the content of LOGGLY_TOKEN_FILE if set.This image is not intended to be used in production. Its sole purpose is to demonstrate the functionalities of Docker. Head to https://LearnDocker.online for more information.
Content type
Image
Digest
Size
12.2 MB
Last updated
over 8 years ago
docker pull jfahrer/fluentd:v1.1.0-loggly