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