Public | Automated Build

Last pushed: 2 years ago
Short Description
rsyslog (with rsyslog-elasticsearch) and logrotate.
Full Description

Syslog Docker image

Image with rsyslog (with rsyslog-elasticsearch) and logrotate to consume messages from other containers via syslog Docker logging driver.

Every container must be run with --log-opt tag="{{.ImageName | urlquery }}/{{.ImageFullID | urlquery}}/{{.Name}}/{{.ID}}"

To use this image with default config you should link it with elasticsearch container.


docker run -it --link elasticsearch:elasticsearch --name syslog --rm -v "$PWD/logs:/var/log:rw" -p 514:514 opedge/docker-rsyslog-elastic

Example logging:

docker run -it --rm --log-driver=syslog --log-opt syslog-address=tcp:// --log-opt tag="{{.ImageName | urlquery }}/{{.ImageFullID | urlquery}}/{{.Name}}/{{.ID}}" ubuntu:14.04 echo "test log message"
Docker Pull Command
Source Repository