Linux Event Logging

参考《Linux® Debugging and Performance Tuning: Tips and Techniques》 chapter 8

syslogd

/home/a/j/nomad2:ps -ef |grep klogd
root 4364 1 0 07:12 ? 00:00:00 /bin/dd bs 1 if /proc/kmsg of /var/run/klogd/kmsg
klog 4366 1 0 07:12 ? 00:00:00 /sbin/klogd -P /var/run/klogd/kmsg
nomad2 29513 27878 0 19:43 pts/11 00:00:00 grep klogd
/home/a/j/nomad2:ps -ef |grep -i syslogd
syslog 4345 1 0 07:12 ? 00:00:05 /sbin/syslogd -u syslog
nomad2 29515 27878 0 19:43 pts/11 00:00:00 grep -i syslogd

配置文件: /etc/syslog.conf

The logger command is a shell command interface to Syslog

One method to control managing log files is the use of the logrotate command. It enables automatic rotation, compression, removal, and mailing of log files.相应的配置文件是/etc/logrotate.conf


评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值