设为首页 加入收藏

TOP

介绍一下如何查看aix的错误日志及如何做日志清理(二)
2014-11-14 23:15:03 来源: 作者: 【 】 浏览:28
Tags:介绍 如何 查看 aix 错误 日志 清理
除多有记录


errclear 7 删除7天以前的记录


smit errclear








syslogd


unix普遍用到的日志系统,配置文件/etc/syslog.conf


没有什么多说的,比较普遍,定义的话是修改syslog.conf,保存的日志为文本格式


syslog.conf配置文件格式


信息类别.错误等级 记录的位置



其中,各项的含义


信息类别


auth used by authorization systems (login)


cron used for the cron and at systems


daemon system/netword daemon


kern produced by kernel messages


lpr printing system


mail mail system


mark internally used for time stamps


news reserved for the news system


user default facility, used for any program


uucp reserved for the uucp system



错误等级


debug normally used for debugging


info informational messages


notice conditions that may require attention


Warning any warnings


err any errors


crit critical conditions like hardware problems


Alert any condition that demand immediate attention


emerg any emergency condition


none Do not send messages from the indicated f


acility to the selected file.



记录的位置


可以是本地的文件(包括设备文件如/dev/console)或远程syslog日志服务器。



假如我要记录cron的所有错误信息,则可以在/etc/syslog.conf加入下面一行


cron.err /var/cronerr.log


定义记录cron的err信息到/var/cronerr.log文件


首页 上一页 1 2 下一页 尾页 2/2/2
】【打印繁体】【投稿】【收藏】 【推荐】【举报】【评论】 【关闭】 【返回顶部
分享到: 
上一篇database面试题 下一篇进阿里巴巴的艰辛历程

评论

帐  号: 密码: (新用户注册)
验 证 码:
表  情:
内  容: