1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2024-11-24 08:52:31 +02:00
dockerfiles/rsyslog
2018-07-28 17:34:05 +08:00
..
arm update rsyslog 2018-07-28 17:34:05 +08:00
docker-compose.yml update rsyslog 2018-07-28 17:34:05 +08:00
Dockerfile update rsyslog 2018-07-28 17:34:05 +08:00
README.md update rsyslog 2018-07-28 17:34:05 +08:00
rsyslog.conf update rsyslog 2018-07-28 17:34:05 +08:00

rsyslog

RSYSLOG is the rocket-fast system for log processing.

docker-compose.yml

rsyslog:
  image: vimagick/rsyslog
  ports:
    - "514:514/tcp"
    - "514:514/udp"
  volumes:
    - ./rsyslog.conf:/etc/rsyslog.conf
    - ./data:/var/log
  restart: always

Up and Running

$ docker-compose up -d

$ docker-compose exec rsyslog sh
>>> pwd
/var/log
>>> tail -f /var/log/syslog
2016-10-29T08:17:34+00:00 172.17.0.1 root: hello
2016-10-29T08:17:41+00:00 172.17.0.1 root: world
^C
>>> exit

$ logger -n localhost -p mail.debug hello
$ logger -n localhost -p mail.info world