Resolution of the configuration file/etc/syslog. conf under RedHat performanise5.3

Source: Internet
Author: User
Tags syslog system log

The configuration file/etc/syslog. conf is the deamon service of the system log file and the daemon configuration file syslogd. Syslogd is responsible for generating Linux Log File Information, and klogd is responsible for generating Linux kernel information log files.

The contents of a typical syslog. conf file are as follows:

/Etc/syslog. conf file

# Log all kernel messages to the console.
# Logging much else clutters up the screen.KernWhere the kernel generates information
Kern. */dev/console

# Log anything (could t mail) of level info or higher.
# Don't log private authentication messages!
*. Info; mail. None; news. None; authpriv. None; cron. None/var/log/messages

# The authpriv file has restricted access.AuthprivAuthentication-related mechanisms, such as login, ssh, and Su, require accounts and passwords.
Authpriv. */var/log/secure

# Log all the mail messages in one place.
Mail
Information record related to the initial email
Mail. *-/var/log/maillog

# Log cron stuffCronWhere information logs are generated, such as cron/at, for routine Job Scheduling
Cron. */var/log/cron

# Everybody gets emergency messages sends emerg-level information of any device to all users on the system.
*. Emerg *

# Save news errors of level crit and higher in a special file. Record the crit-level information of UCP and news devices to the/var/log/Spooler file.
Uucp, news. crit/var/log/Spooler

# Save boot messages also to boot. Log startup process information record
Local7. */var/log/boot. Log

#
# Inn
#NewsSomething related to newsgroup servers
News. = crit/var/log/news. crit
News. = err/var/log/news. Err
News. Notice/var/log/news. Notice
-------------------------- End ------------------------------------------

/Etc/syslog. conf defines rules according to the following format:

Facility. Level Action

 

The device. Priority Action facility. level field is also known as seletor (selection condition). spaces or tabs are used to separate the selection condition and action.
# Comments start with "#". blank lines are automatically skipped.

 

The syslog service (facility) mainly includes the following:

Authpriv-authentication activities including privileged information such as user names
Cron-information about scheduled tasks related to cron and.
Daemon-background process information related to the inetd daemon.
Kern-kernel information is first transmitted through klogd.
LPR-information related to the print service.
Mail-email-related information
The internal function of mark-syslog is used to generate a timestamp.
News-information from the news server
Syslog-information generated by Syslog
User-information generated by the user program
Uucp-information generated by uucp
Local0-local7-used with custom programs


 

Level defines the degree of urgency of a message. In ascending order of severity: emerg-the system is unavailable, equivalent to panic
Alert-Conditions for immediate modification
Crit-false conditions that prevent implementation of certain tools or subsystems
Err-the error condition that blocks the implementation of some functions of a tool or some subsystems, which is equivalent to an error
Warning-warning information, equivalent to warn
Notice-General Conditions of importance
Info-messages that provide information
Debug-Other information that does not contain function conditions or problems
None-no importance level, usually used for troubleshooting

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.