- 论坛徽章:
- 0
|
在syslog.conf增加了个日志服务器\r\ndaemon.notice;auth.info @10.10.10.10\r\n但是本机message都没数据生成了\r\n\r\nsyslog.conf root@app2 # more /etc/syslog.conf\r\n\r\n#ident \"@(#)syslog.conf 1.5 98/12/14 SMI\" /* SunOS 5.0 */\r\n\r\n#\r\n\r\n# Copyright (c) 1991-1998 by Sun Microsystems, Inc.\r\n\r\n# All rights reserved.\r\n\r\n#\r\n\r\n# syslog configuration file.\r\n\r\n#\r\n\r\n# This file is processed by m4 so be careful to quote (`\') names\r\n\r\n# that match m4 reserved words. Also, within ifdef\'s, arguments\r\n\r\n# containing commas must be quoted.\r\n\r\n#\r\n\r\n*.err;kern.notice;auth.notice /dev/sysmsg\r\n\r\n*.err;kern.debug;daemon.notice;mail.crit /var/adm/messages\r\n\r\n\r\n\r\n*.alert;kern.err;daemon.err operator\r\n\r\n*.alert root\r\n\r\n\r\n\r\n*.emerg *\r\n\r\nauth.notice /var/adm/authlog\r\n\r\n*.* @10.154.32.179\r\n\r\n\r\n\r\n# if a non-loghost machine chooses to have authentication messages\r\n\r\n# sent to the loghost machine, un-comment out the following line:\r\n\r\n#auth.notice ifdef(`LOGHOST\', /var/log/authlog, @loghost)\r\n\r\n\r\n\r\nmail.debug ifdef(`LOGHOST\', /var/log/syslog, @loghost)\r\n\r\n\r\n\r\n#\r\n\r\n# non-loghost machines will use the following lines to cause \"user\"\r\n\r\n# log messages to be logged locally.\r\n\r\n#\r\n\r\nifdef(`LOGHOST\', ,\r\n\r\nuser.err @10.0.0.92\r\n\r\nauth.notice /var/adm/authlog\r\n\r\nuser.err /dev/sysmsg\r\n\r\nuser.err /var/adm/messages\r\n\r\nuser.alert `root, operator\'\r\n\r\nuser.emerg *\r\n\r\n)\r\n\r\ndaemon.notice;auth.info @10.10.10.10\r\n复制代码root@app2 # tail -f /var/adm/messages\r\nNov 26 08:48:10 app2 syslogd: going down on signal 15\r\nNov 29 10:19:38 app2 syslogd: going down on signal 15\r\nNov 29 10:19:40 app2 syslogd: line 20: unknown priority name \"*\"\r\n\r\nroot@app2 # ps -ef|grep -i syslog\r\n root 12298 12049 0 10:37:35 pts/1 0:00 grep -i syslog\r\n root 9020 1 0 10:19:41 ? 0:00 /usr/sbin/syslogd\r\nroot@app2 # \r\n\r\n |
|