Updated: 2012-11-26 09:48 EST

1 System Logging - syslog and /var/log/Indexup to index

System technicians need to know what is happening on the system, and Linux provides an extensive logging system. The logging handles logs generated by the Linux kernel and by other processes.

Logging of program and system messages is handled by a syslog process, a process that listens for connections and writes messages to log files.

System logging is configured via files in /etc such as /etc/syslog.conf, /etc/rsyslog.conf, etc. The syslog process is started by system start-up scripts such as klogd, sysklogd, rsyslogd, etc. The main daemon (program) name is usually something like “syslogd” or “rsyslogd” or “klogd”.

$ ps laxww | grep syslog
$ ps laxww | grep klogd

Logs are usually stored under directory /var/log/; but, the configuration file for the syslog program can put the files anywhere. A useful command to use is one that shows which log files have changed recently, using the “time” option to ls:

$ ls -lt /var/log | less

1.1 Kernel messagesIndexup to index

1.2 ReviewIndexup to index

Author: 
| Ian! D. Allen  -  idallen@idallen.ca  -  Ottawa, Ontario, Canada
| Home Page: http://idallen.com/   Contact Improv: http://contactimprov.ca/
| College professor (Free/Libre GNU+Linux) at: http://teaching.idallen.com/
| Defend digital freedom:  http://eff.org/  and have fun:  http://fools.ca/

Plain Text - plain text version of this page in Pandoc Markdown format

Campaign for non-browser-specific HTML   Valid XHTML 1.0 Transitional   Valid CSS!   Creative Commons by nc sa 3.0   Hacker Ideals Emblem   Author Ian! D. Allen