Skip to content

Instantly share code, notes, and snippets.

@manuelmorales
Created May 11, 2013 16:59
Show Gist options
  • Save manuelmorales/5560602 to your computer and use it in GitHub Desktop.
Save manuelmorales/5560602 to your computer and use it in GitHub Desktop.
Make sysklogd (syslog) listen for UDP messages on port 514. Useful for haproxy
# /etc/haproxy.cfg
global
log 127.0.0.1 local0
...
# /etc/conf.d/sysklogd
# Config file for /etc/init.d/sysklogd
SYSLOGD="-m 0 -r"
# send warnings and above to the console
KLOGD="-c 3 -2"
# /etc/syslog.conf
$ModLoad imudp
$UDPServerAddress 127.0.0.1
$UDPServerRun 514
local0.* -/var/log/local0.log
....
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment