Skip to content

factorish/factorish-syslog

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

factorish/syslog

About

A very simple socat based syslog server designed to listen to syslog on TCP, UDP or a UNIX socket /syslog/sock and print any messages to stdout so that they get picked up by the docker log system and can be accessed via tools like logspout.

Usage

$ docker run -d factorish/syslog [-t tcp|udp|socket]

Examples

Listen on TCP 5140 on host:

$ docker run -d -p 5140:514 factorish/syslog -t tcp

Listen on UDP 5140 on host:

$ docker run -d -p 5140:514/udp factorish/syslog -t udp

Listen on a socket which is volume mounted into another container:

$ docker run -d --name syslog -v /syslog/socket factorish/syslog -t socket
$ docker run -ti  --volumes-from syslog defensative/socat-ubuntu UNIX:/syslog/socket -
test
test
test
CTRL^C
$ docker logs syslog
==> syslog listening on socket
test
test
test

About

a tiny socat based syslog server

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages