除多有记录
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文件