I recently wanted to setup all my VMs to report to a remote syslog server, so that I can monitor the output and different levels of information.

The following help guide was just what I needed: Papertrail support article

Step 1:
Find out what type of logging daemon is running:

ls -d /etc/*syslog*

Step 2:
Add the following to the end of the respective .conf file:

*.* @your.server.ip

Step 3:
Kill the service – Ubuntu: sudo killall -HUP rsyslog rsyslogd and restart: sudo service rsyslog restart
Kill the service – Mac OSX: sudo killall -HUP syslog syslogd

Then to test messages are getting through to the remote syslog server:

logger "this is a test"

Worked a dream.

If you are specifying a specific port for your syslog server then put

*.* @your.server.ip:port_number

Comments are closed.

Post Navigation