icha024/go-collect-logs

By icha024

Updated almost 9 years ago

Lightweight tool to collect syslogs (RFC3164 & RFC5424)

Image
0

130

icha024/go-collect-logs repository overview

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

Tag summary

Content type

Image

Digest

Size

294.3 MB

Last updated

almost 9 years ago

Requires Docker Desktop 4.37.1 or later.