歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
Linux教程網 >> Linux基礎 >> Linux教程 >> Linux Event Logging

Linux Event Logging

日期:2017/2/28 16:05:28   编辑:Linux教程

參考《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

Copyright © Linux教程網 All Rights Reserved