Log Files and their Significance Flashcards
Which logfile is the primary system log file which contains a wide variety of information about the system, including kernel messages, system error messages, and the startup messages of various services?
/var/log/syslog
or /var/log/messages
Which logfile records authentication logs, including successful and failed login attempts, and other authentication-related events?
/var/log/auth.log
or /var/log/secure
Which log file would you analyze to detect unauthorized access attempts or breaches?
/var/log/auth.log
or /var/log/secure
Which log file contains messages related to the system boot process and is useful for diagnosing issues related to the boot sequence and ensuring that all necessary services start correctly?
/var/log/boot.log
Which log file holds messages related to kernel activities, such as hardware device status and driver messages and is valuable for troubleshooting hardware and driver issues?
/var/log/dmesg
Which log file is dedicated to kernel logs and is useful for a deeper dive into kernel-specific messages and issues, separate from general system logs?
/var/log/kern.log
Which log file records all cron job activities and helps in monitoring and troubleshooting scheduled tasks?
/var/log/cron.log
Which log file maintains a log of failed login attempts and is useful for security analysis, especially in detecting potential brute-force or other unauthorized login attempts?
/var/log/faillog
Which log file records all requests made to the Apache server?
/var/log/apache2/access.log
same with nginx, but the path is /var/log/nginx/access.log
Which log file contains error messages, which are essential for troubleshooting web server issues?
/var/log/apache2/error.log
same with nginx, but the path is /var/log/nginx/error.log
Which directory usually contains log files?
/var/log
Which log file would include logs like creation of a new group, a new user, and the addition of the user into different groups?
/var/log/auth.log
Which directory includes logs such as webserver, database, or file share server logs?
/var/log
Where are the commands that are run on a Linux host using sudo
logged?
/var/log/auth.log
<br/ >
~~~
/var/log/auth.log.1:Apr 17 21:04:29 Linux4n6 sudo: tryhackme : user NOT in sudoers ; TTY=pts/0 ; PWD=/home/tryhackme ; USER=root ; COMMAND=/usr/bin/apt-get install apache2
~~~
Which log file stores logs for opened files in vim
?
.viminfo
in the home directory
command line history, search string history, etc. for the opened files