System default logs in Linux

Source: Internet
Author: User
Tags dmesg

/var/log/cron
Logs related to system timing tasks are logged

/var/log/cups
Logs of printed information are logged

/var/log/dmesg
The information of the kernel self-test in the system is recorded, and can be viewed directly by DMESG command.

/var/log/btmp
Log errors logged, cannot be viewed directly, is a binary file, use the LASTB command to view

/var/log/lastlog
Records the last logon time of all users in the system, cannot be viewed directly, is a binary file, use the Lastlog command to view

/var/log/mailog
Record message information

/var/log/message
Record the most important information of the system, if the system has problems, to first check this file

/var/log/secure
Record authentication and authorization information as long as the account password is involved

/var/log/wtmp
Permanent logging of all user logon, logoff information, start, restart, shutdown events, using the last command to view

/var/run/utmp
Log the currently logged-on user information, and with the user's logon logoff constantly changing, use the W who users command to view

Note:
1. In addition to the system default logs, System services installed in RPM will log the logs in the Var/log directory by default
2. The system default log is also determined by the configuration file whether to print:
/etc/rsyslog.conf

System default logs in Linux

Related Article

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.