This keeps all the logs related to the application, systems, events, and service logs. let’s see, how to check Linux logs. We can check and find the log location in Linux. We can also open a log file then analyze them to solve the issue in the Linux.
How To Check Linux Logs And Where They Exist:
You can also create a custom log file location for your applications and just define a location. Here, I will show you all the logs files and their location. So let’s start it.
Check Out: Error SOSREPORT Command Not Found
System Logs: you can find system related log file here at the location /var/log/messages or /var/log/syslog
/var/log/secure or /var/log/auth.log: You can find here logs related to authentication and ssh logs would also be stored.
/var/log/boot.log: You can find boot logs in this file.
/var/log/dmesg: The kernel-related logs would be stored in this file.
/var/log/cron: This stores the crontab related logs.
/var/log/yum.log: yum related logs are stored in this file.
/var/log/maillog: This stores the log related to mail which you have sent using postfix, SMTP or any email related services are running on the server.
/var/log/failog : Stores all the failed logins.
/var/log/wtmp : Stores login/logout history
/var/log/utmp : Current login user state
/var/log/btmp : Stores all failed login attempts.
/var/log/daemon.log: It tracks services running in the background that performs some task but has no graphical output.
That’s it check log location open file linux find