Public Repository

Last pushed: 5 months ago
Short Description
Lightweight tool to collect syslogs (RFC3164 & RFC5424)
Full Description

Lightweight tool to collect syslogs (RFC3164 & RFC5424) then display them on a web console for easy viewing/searching.

Source:
https://github.com/icha024/go-collect-logs

To run:

docker run --rm -ti -p 3000:3000 -p 10514:10514/UDP -p 10514:10514/TCP icha024/go-collect-logs

Sending logs

Send syslogs to port 10514

For example:

echo 'test message' 2>&1 | logger -P 10514 -n localhost

or redirect from your existing Docker container:

docker run --rm -ti --log-driver=syslog --log-opt syslog-format=rfc3164 --log-opt syslog-address=udp://127.0.0.1:10514 alpine /bin/sh -c "while true; do echo My Message \$RANDOM; sleep 1; done;"

(See piping Docker logs to syslog: https://docs.docker.com/engine/admin/logging/overview/)

Viewing logs

Navigate to http://127.0.0.1:3000

Docker Pull Command
Owner
icha024