• Sat. Apr 17th, 2021

A collection of various log locations on the Linux operating system.

/var/log/alternatives.log (Ubuntu/DEB) 
Alternative logs information from update-alternatives into this log file. 

/var/log/apache2/access.log (Ubuntu/DEB) 
Access Log file records incoming requests and all requests processed by apache. Such as HTTP get and post requests. 
These logs can be parsed by log parsers such as awstats or webalizer. This is configurable by the Custom Log directive. 

/var/log/apache2/error.log (Ubuntu/DEB) 
All Apache errors and diagnostic information found while serving requests are stored here.  Location of the error.log file is set by Error Log Directive.  

Stores information from Linux Audit deamon (auditd). This log contains information on what users perform read/writes to . An example is you can determine who changed a specific file. 

Contains system authorization information, including user logins and authentication mechanism that were used. 

Contains information pertaining to the boot process after the kernel has loaded. Information such as system file check, mounting of the filesystem, starting firewall, starting network devices and starting services. 

This will contain failed login attempts. Use the ‘last’ command to view this log. Example: last -f /var/log/btmp |more  

When cron daemon or anacron starts a cron job the information the information about the cron job is stored here.  

Contains Kernel information about hardware and devices detected during the boot process. This file is overwritten when new messages are sent to it. Example: the next boot.  

/var/log/dpkg.log (Ubuntu/DEB) 
This has information that is logged when a package is installed or removed using the dpkg command.  

Log file contains user failed login attempts. faillog is a command that access’s the information.  

/var/log/kern.log (Ubuntu/Deb, can be configured for Centos/Redhat) 
kern.log contains the logging from the kernels initialization at system bootup, as well as any kernel errors or informational messages that are sent from the kernel 

/var/log/maillog.log (Centos/Redhat) 
Information from the mail server that is running on your system. Example Sendmail logging information. 

/var/log/mail.log (Ubuntu/DEB)  
Same information as Maillog.log for Centos/Redhat flavors.  

This folder will contain additional logs provided by your mail server. Example: sendmail stores collected mail statistics in /var/log/mail/statistics. 

/var/log/messages (Centos/Redhat) 
Contains global system messages, including the messages logged during boot. Several things are logged in this file including mail, cron, daemon, kern, auth, etc. 

Contains daily sar files collected by sysstat package.  

Contains log information stored by samba daemon. Used to connect to windows/linux filesystems.  

SELinux uses setroubleshootd (SE Trouble Shoot Daemon) to notify about issues in the security context of files, and logs those information in this log file. 

/var/log/secure (Centos/Redhat) 
Information related to Authentication and authorization privileges. Exmample sshd logs all information here including unsuccessful attempts.  

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/yum.log (Centos/Redhat) 
Information that is logged when a package is installed or removed is stored here.   

Scroll Up