1st Zhi
1st log is a plain text file that the system uses to record some relevant information about the system at run time
The purpose of the 2nd log is to save the running status, error messages, etc. of the related programs. In order to analyze the system, save the history and find the parse error using when the error occurs
3 Linux typically saves the following types of logs
Kernel information
Service Information
Application information
2 Rsyslog
1 the services used to implement logging in Linux systems are called Rsyslog, the syslog used in earlier Linux distributions, Rsyslog is the enhanced version of Syslog
2 Rsyslog is typically installed by default and is set to start automatically, and you can control the Rsyslog service with the following command
Service Rsyslog Start | Stop restart
3 Rsyslog configuration file is
/etc/rsyslog.conf
The 4th log message is generally stored in
/var/log
5 We generally use tail-g logfile method to monitor log files in real time
3 facility
1 Rsyslog defines the source of log messages through the facility concept to facilitate classification of logs
2 facility has the following several
Kern Kernel Message
User-level messages
Mail mail system messages
Datemon system service Message
Auth Authentication System Message
Syslog Log system itself message
LPR Print System messages
Authpriv Permission System messages
Corn timed Task Message
News News System messages
UUCP UUCP System Message
FTP FTP system messages
4 priority/serverity Level
1 In addition to the log source, for the same source of log messages, also has a priority division, the priority is divided into the following several