Or use the script below to that a whole bunch of machines to make sure remote sysloging is working.
#!/bin/sh
# Written By: BAB
#Purpose: to make sure syslog is working properly
echo “starting to test syslog”
for server in `cat /opt/scripts/machine list` # file with only one machine per a line resoveable via DNS
do
ssh root@$server logger -p local3.alert “Hello World”
echo “done testing syslog”
done
So if you don’t see the machine’s name in your syslog file then there is something wrong.