Log folder log file contents in Linux

Source: Internet
Author: User
Tags auth dmesg

/var/log/messages -Includes overall system information, which also contains logs during system startup. In addition,mail,cron,daemon,Kern and Auth and other content are also recorded in the var/log/messages log.

/VAR/LOG/DMESG -Contains kernel buffering information ( Kernel ring Buffer ). When the system starts, many hardware-related information is displayed on the screen. You can view them with DMESG.

/var/log/auth.log -Contains system licensing information, including user login and use of the permissions mechanism.

/var/log/boot.log -Contains the log at system startup.

/var/log/daemon.log -Contains various system daemon log information.

/var/log/dpkg.log – including installation or dpkg command to clear the log of the package.

/var/log/kern.log – Contains logs generated by the kernel to help resolve issues when customizing the kernel.

/var/log/lastlog -Record The most recent information for all users. This is not an ASCII file, so you need to use the lastlog command to view the content.

/var/log/maillog/var/log/mail.log -Contains the log information of the system running e-mail server. For example,sendmail log information is all sent to this file.

/var/log/user.log -Logs of all levels of user information are logged.

/var/log/xorg.x.log -From X log information.

/var/log/alternatives.log – Updates to the replacement information are recorded in this file.

/var/log/btmp – Log all failed login information. Use the last command to view the btmp file. For example, "last-f/var/log/btmp |more".

/var/log/cups -logs that involve all printed information.

/var/log/anaconda.log -In the installation Linux , all installation information is stored in this file.

/var/log/yum.log -Includes use Yum Install the package information.

/var/log/cron -Whenever Cron When a process starts a job, the relevant information is recorded in this file.

/var/log/secure -Contains authentication and authorization information. For example,sshd will record all information (including failed logins) here.

/var/log/wtmp or /var/log/utmp -Contains login information. Use wtmp to find out who is logging into the system, who uses the command to display this file or information, and so on.

/var/log/faillog – Contains user logon failure information. In addition, the error login command is also recorded in this file.

In addition to the above Log file, /var/log is also based on a system-specific application that contains the following subdirectories:

/var/log/httpd/ or /var/log/apache2 -Contains server access_log and error_ Log information.

/var/log/lighttpd/ -Includes Light HTTPD of the Access_log and the Error_log .

/var/log/mail/ – This subdirectory contains additional logs for the mail server.

/var/log/prelink/ -Includes . so file is PreLink the modified information.

/var/log/audit/ -Contains the Linux Audit Daemon stored information.

/var/log/samba/ – Contains the Samba the stored information.

/var/log/sa/ -Contains daily by Sysstat Package Collection of SAR file.

/var/log/sssd/ – for Daemon security services.

Log folder log file contents in Linux

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.