Linux operating system management-Log Management and Analysis

Source: Internet
Author: User
Article Title: Linux operating system management-log management and analysis. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.

Horizontal set-log management: This part includes some open source technologies, which are basically for host-based log records, log file dump, and log file analysis. Many tools are free and open-source software and are integrated in many major Linux systems, including mainstream RetHat and Novell.

◆ I Logrotate

Logrotate is a popular application tool in a large number of Linux systems, including all RedHat and SUSE-based systems. Logrotate is mainly controlled by cron (a task scheduler) to run cyclically. Logrotate reads the log file (/ect/logrotate. conf) and archives and compresses the log file according to the configuration information. The system administrator can configure the time when the log file needs to be dumped based on the number of days and size, and how long the backup log needs to be maintained, so that the old archived log file can be replaced by the new archived log.

◆ Ⅱ Syslogd and klogd

A typical Linux system uses a daemon background program called syslogd to capture log information from a user space application, record it as a text log file, or send it to a log recording host over the network. Syslogd is usually accompanied by a program named klogd, which is used to capture and record kernel information.

The behavior of the Syslogd program can be configured through the/etc/syslog. conf configuration file. All information captured by syslog is classified by facility and priority. The information can then be sent to a special log file or log recording host, or completely discarded based on their facility (device) and priority (behavior level) attributes.

498) this. style. width = 498; ">

[1] [2] Next page

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.