Introduction
System logs keep track of what happens on your computer. They help you find problems or see what programs are doing by saving messages in files inside the /var/log folder.
When you want to check why your computer or a program stopped working.
When you want to see who logged into your system and when.
When you want to monitor if your system is running smoothly without errors.
When you want to find out if a service like the web server started correctly.
When you want to keep a record of system events for security or troubleshooting.