Click to See Complete Forum and Search --> : syslogd


*nixX
12-15-2002, 09:33 PM
Ok, I have searched all over for this and have found nothing ...
How can I setup syslog to log remote messages sent from my router. The router sends logs on local1 facility, I have the settings in syslog.conf set to log all messages from local1.* to /var/log/router.log ... but I cant figure out how to get syslog listening for the logs on the linux machine.

TIA

bastard23
12-16-2002, 12:56 AM
*nixX,
Add a "-r" argument to the syslogd init script. It will get the syslogd daemon to listen to UDP port 514. Check out your man page for more details.

Have fun,
chris

*nixX
12-16-2002, 12:32 PM
so, in the init script where it specifies:

else
SYSLOGD_OPTIONS="-m 0"
KLOGD_OPTIONS="-2"
fi

should I remove the -m option and just add the -r option, or retain the -m 0 option and add the -r option .... if so what would that look like?

bastard23
12-16-2002, 02:12 PM
*nixX,

SYSLOGD_OPTIONS="-r -m 0"

Check the man page "man syslogd" to see the meaning of the -m arg. Your router should have some sort of "log" command to send syslog messages, so you can test it.

Good Luck,
chris