系统日志和日志文件log

 

 

 

----------------------------------------------------------系统日志 message

tail -f /var/log/message*

 

 

 

----------------------------------------------------------系统日志配置文件/etc/syslog.conf
[root@kolvin log]# vim /etc/syslog.conf
# The authpriv file has restricted access.
authpriv.*                                              /var/log/secure
# Log all the mail messages in one place.
mail.*                                                  -/var/log/maillog
# Log cron stuff
cron.*                                                  /var/log/cron
# Everybody gets emergency messages
*.emerg                                                 *
# Save news errors of level crit and higher in a special file.
uucp,news.crit                                          /var/log/spooler
# Save boot messages also to boot.log
local7.*                                                /var/log/boot.log

 

 

 

 

----------------------------------------------------------特殊日志文件

/var/log/wtmp 包含用户登陆系统和退出系统的记录,以二进制形式保存

/var/log/lastlog类似wtmp ,以二进制形式保存

 

----------------------------------------------------------内核和启动日志

 

 

----------------------------------------------------------日志轮换工具logrotate

配置文件/etc/logrotate.conf

 /etc/logrotate.d/

 

ubuntu下也有savelog

 

----------------------------------------------------------系统事件的日志程序syslog

 

/var/log/syslog

/var/log/secure 系统安全日志

/var/log/wtmp 记录登陆者的数据

/var/log/lastlog 记录登陆时间

/var/log/dmesg  系统启动日志

dmesg | grep error

 

 

/var/log/cron crond日志

 

 

 

 

 

 

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值