# Options to syslogd
# -m 0 disables 'MARK' messages.
# -r enables logging from remote machines
# -x disables DNS lookups on messagesrecieved with –r (不用DNS解析)
# See syslogd(8) for more details
SYSLOGD_OPTIONS=" -m0" 修改为 SYSLOGD_OPTIONS="-r-x -m 0"
# Options to klogd
# -2 prints all kernel oops messages twice; oncefor klogd to decode, and
# once for processing with'ksymoops'
# -x disables all klogd processing of oops messagesentirely
# See klogd(8) for more details
KLOGD_OPTIONS="-x"
#
SYSLOG_UMASK=077
# set this to a umask value to use for all log files asin umask(1).
# By default, all permissions are removed for"group" and "other".
2.3修改文件syslog 之后
重启syslog服务
Service syslog restart
2.4 查看syslogd进程
ps –ef |grepsyslogd |grep –v “grep syslogd”
root 30307 1 013:59 ? 00:00:00 syslogd -r -x -m ###有-r 就表示成功
2.5 设置LINUX 允许cisco数据包进来.
[root@localhost log]# iptables -L
Chain INPUT (policy ACCEPT)
target prot optsource destination
ACCEPT udp -- anywhere 192.168.80.63 udpdpt:syslog
这样,查看80.log是否有记录
[root@localhost log]# cat /var/log/80.log
Jan 14 21:36:06 10.0.0.71 949: 001021: *Mar 1400:47:29: %SYS-5-CONFIG_I: Configured from console by abc on vty1(192.168.2.1)
Jan 14 22:51:04 10.0.0.71 950: 001022: *Mar 1402:01:32: %LINK-3-UPDOWN: Interface FastEthernet0/7, changed state to up
Jan 14 22:51:05 10.0.0.71 951: 001023: *Mar 1402:01:33: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/7,changed state to up(完)
来自 <http://blog.chinaunix.net/uid-12380499-id-105686.html>