增加了个日志服务器,本机message怎么没日志输出
本帖最后由 faith900 于 2010-11-29 11:10 编辑
在syslog.conf增加了个日志服务器
daemon.notice;auth.info @10.10.10.10
但是本机message都没数据生成了
syslog.conf
- root@app2 # more /etc/syslog.conf
- #ident "@(#)syslog.conf 1.5 98/12/14 SMI" /* SunOS 5.0 */
- #
- # Copyright (c) 1991-1998 by Sun Microsystems, Inc.
- # All rights reserved.
- #
- # syslog configuration file.
- #
- # This file is processed by m4 so be careful to quote (`') names
- # that match m4 reserved words. Also, within ifdef's, arguments
- # containing commas must be quoted.
- #
- *.err;kern.notice;auth.notice /dev/sysmsg
- *.err;kern.debug;daemon.notice;mail.crit /var/adm/messages
- *.alert;kern.err;daemon.err operator
- *.alert root
- *.emerg *
- auth.notice /var/adm/authlog
- *.* @10.154.32.179
- # if a non-loghost machine chooses to have authentication messages
- # sent to the loghost machine, un-comment out the following line:
- #auth.notice ifdef(`LOGHOST', /var/log/authlog, @loghost)
- mail.debug ifdef(`LOGHOST', /var/log/syslog, @loghost)
- #
- # non-loghost machines will use the following lines to cause "user"
- # log messages to be logged locally.
- #
- ifdef(`LOGHOST', ,
- user.err @10.0.0.92
- auth.notice /var/adm/authlog
- user.err /dev/sysmsg
- user.err /var/adm/messages
- user.alert `root, operator'
- user.emerg *
- )
- daemon.notice;auth.info @10.10.10.10
复制代码root@app2 # tail -f /var/adm/messages
Nov 26 08:48:10 app2 syslogd: going down on signal 15
Nov 29 10:19:38 app2 syslogd: going down on signal 15
Nov 29 10:19:40 app2 syslogd: line 20: unknown priority name "*"
root@app2 # ps -ef|grep -i syslog
root 12298 12049 0 10:37:35 pts/1 0:00 grep -i syslog
root 9020 1 0 10:19:41 ? 0:00 /usr/sbin/syslogd
root@app2 #
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
弄个不是notice和info的出来看看会不会有告警生成呢
复制代码