Linux system Services 1 rsyslog Log service

Source: Internet
Author: User
Tags ftp mail parse error syslog rsyslog

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.