Install the software: apt-get install syslog-ng
Modify /etc/syslog-ng/syslog-ng.conf
:
Declare the name of the syslog server:
destination syslog_server { udp(log.server.my.com); };
Restart the daemon: /etc/init.d/syslog-ng restart
If you have a server running already, you can now test the configuration by logging on to the client and saying something like: echo "JohnDoe testing Syslog-NG" | logger
You should see the message turn up in the log files of the server.