感谢支持
我们一直在努力

Linux Event Logging

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


syslogd


  1. /home/a/j/nomad2:ps -ef |grep klogd  

  2. root 4364 1 0 07:12 ? 00:00:00 /bin/dd bs 1 if /proc/kmsg of /var/run/klogd/kmsg  

  3. klog 4366 1 0 07:12 ? 00:00:00 /sbin/klogd -P /var/run/klogd/kmsg  

  4. nomad2 29513 27878 0 19:43 pts/11 00:00:00 grep klogd  

  5. /home/a/j/nomad2:ps -ef |grep -i syslogd  

  6. syslog 4345 1 0 07:12 ? 00:00:05 /sbin/syslogd -u syslog  

  7. 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

赞(0) 打赏
转载请注明出处:服务器评测 » Linux Event Logging
分享到: 更多 (0)

听说打赏我的人,都进福布斯排行榜啦!

支付宝扫一扫打赏

微信扫一扫打赏