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


你可能感兴趣的:(linux,command,performance,logging,compression,debugging)