Get your server issues fixed by our experts for a price starting at just 25 USD/Hour. Click here to register and open a ticket with us now!

Author Topic: Important Log Files located under /var/log Directory  (Read 2458 times)

0 Members and 1 Guest are viewing this topic.

Vinil

  • Guest
Important Log Files located under /var/log Directory
« on: November 22, 2013, 09:00:33 pm »
/var/log/messages – Contains global system messages, including the messages that are logged during system startup. There are several things that are logged in /var/log/messages including mail, cron, daemon, kern, auth, etc.


/var/log/dmesg – Contains kernel ring buffer information. When the system boots up, it prints number of messages on the screen that displays information about the hardware devices that the kernel detects during boot process. These messages are available in kernel ring buffer and whenever the new message comes the old message gets overwritten.


/var/log/auth.log – Contains system authorization information, including user logins and authentication machinsm that were used.


/var/log/boot.log – Contains information that are logged when the system boots


/var/log/daemon.log – Contains information logged by the various background daemons that runs on the system.


/var/log/kern.log– Contains information logged by the kernel. Helpful for you to troubleshoot a custom-built kernel.


/var/log/lastlog – Displays the recent login information for all the users. This is not an ascii file. You should use lastlog command to view the content of this file.


/var/log/maillog – Contains the log information from the mail server that is running on the system. For example, sendmail logs information about all the sent items to this file


/var/log/btmp – This file contains information about failed login attemps. Use the last command to view the btmp file. For example, “last -f /var/log/btmp | more”


/var/log/cups – All printer and printing related log messages


/var/log/anaconda.log – When you install Linux, all installation related messages are stored in this log file


/var/log/yum.log – Contains information that are logged when a package is installed using yum


/var/log/cron – Whenever cron daemon (or anacron) starts a cron job, it logs the information about the cron job in this file.


/var/log/secure – Contains information related to authentication and authorization privileges. For example, sshd logs all the messages here, including unsuccessful login.


/var/log/wtmp or /var/log/utmp – Contains login records. Using wtmp you can find out who is logged into the system. who command uses this file to display the information.

/var/log/sa/ – Contains the daily sar files that are collected by the sysstat package.