Public | Automated Build

Last pushed: 6 months ago
Short Description
docker-syslog-ng
Full Description

syslog-ng in docker

Minimal syslog-ng container (18mb) that writes logs to /var/log/syslog-ng/$PROGRAM/$PROGRAM.log.

Exposed inputs:

  • tcp port 514
  • udp port 514
  • unix socket /var/run/syslog-ng/syslog-ng.sock

Usage

Listen for udp port 514 on localhost and save logs to /var/log/syslog-ng:

docker run -d -p 127.0.0.1:514:514/udp \
    -v /var/log/syslog-ng:/var/log/syslog-ng \
    --name syslog-ng node3030/docker-syslog-ng

If you want to export unix socket, just bind-mount /var/run/syslog-ng to host somewhere.

If you want to change config, just bind-mount it to /etc/syslog-ng/syslog-ng.conf.

Docker Pull Command
Owner
node3030
Source Repository

Comments (0)