このサイトは、YAMAHAのRTシリーズのルータを使用しています。
ルータのログをサーバ側で取得して記録する方法は、
http://www.rtpro.yamaha.co.jp/RT/FAQ/Syslog/syslog-for-unix.html
にも紹介されています。
が、ここで触れられていない注意点を一つ。
# $FreeBSD: src/etc/syslog.conf,v 1.13 2000/02/08 21:57:28 rwatson Exp $
#
# Spaces are NOT valid field separators in this file.
# Consult the syslog.conf(5) manpage.
*.err;kern.debug;auth.notice;mail.crit /dev/console
*.notice;kern.debug;lpr.info;mail.crit;news.err /var/log/messages
security.* /var/log/security
mail.info /var/log/maillog
lpr.info /var/log/lpd-errs
cron.* /var/log/cron
*.err root
*.notice;news.err root
*.alert root
*.emerg *
# uncomment this to enable logging of all log messages to /var/log/all.log
#*.* /var/log/all.log
# uncomment this to enable logging to a remote loghost named loghost
#*.* @loghost
# uncomment these if you're running inn
# news.crit /var/log/news/news.crit
# news.err /var/log/news/news.err
# news.notice /var/log/news/news.notice
# YAMAHA RT100i router log
user.debug /var/log/router-log
user.notice /var/log/router-log
user.info /var/log/router-log
!startslip
*.* /var/log/slip.log
!ppp
*.* /var/log/ppp.log
の様に ”!startslip”などの、!を含む行よりも前に書くのだそうです。
Router.log