Where are the error logs saved in centos system?

王林
Release: 2020-03-27 17:23:18
Original
6781 people have browsed it

Where are the error logs saved in centos system?

There is no file specifically for recording error logs. Error logs, debugging information logs, and program execution logs are distributed among various main log files. The default path for the log file is: /var/log.

The following are the paths of several important log files and the information they contain:

/var/log/messages: including overall system information, mainly collecting valuable, non-debugging, non-critical Information. It contains logs, mail, cron, daemon, kern and auth during system startup.

/var/log/syslog: It is the standard log output file. It collects and stores log information of various program services based on settings, but does not collect authentication-related information.

/var/log/user.log: Log that records user information of all levels.

/var/log/auth.log: Contains system authorization information, including user login and permission mechanism used, etc.

/var/log/daemon.log: Contains log information of various system background daemon processes.

/var/log/kern.log: Contains logs generated by the kernel, which can help solve problems when customizing the kernel.

Recommended tutorial: centos tutorial

The above is the detailed content of Where are the error logs saved in centos system?. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template