A container that will send logs to Loggly by passing in a list of directories. Every files in the directory will be added into the Syslog entry to be monitored.
This container uses the Loggly scripts to setup Syslog:
https://apprity.loggly.com/sources/setup/file_monitoring_linux
You can attached to another container if you exposed a data volume from the target containers. This is useful in some scenarios. For example, if you had a Tomcat or web server container that is outputting logs. You add a data volume when starting that container (https://docs.docker.com/userguide/dockervolumes/#adding-a-data-volume). Then using this container, you can attach to it using the --volumes-from docker flag to give this Loggly container access to it.
docker run -d \
--volumes-from webui \
--env LOGGLY_TOKEN=<TOKEN> \
--env LOGGLY_ACCOUNT=<ACCOUNT_NAME> \
--env USERNAME=<USERNAME> \
--env PASSWORD=<PASSWORD> \
--env DIRECTORIES_TO_MONITOR="/opt/tomcat/logs,/var/log" \
--env TAGS="my-super-files" \
--env INTERVAL_TIME=3600 \
cloudrity/loggly
Docker container URL:
https://registry.hub.docker.com/u/garland/loggly/
8th Oct 2017 - Run in non interactive mode
Content type
Image
Digest
sha256:8ab052f53…
Size
107.6 MB
Last updated
over 8 years ago
docker pull garland/loggly