As you can see, each log file might have a unique or different format, you can even customize or modify a lot of them, however one comminality that most logfiles have is a timestamp.
Why would that be important?
What could a system administrator do with date/time information?
Where are logfiles stored?
For the most part, on an Ubuntu system they are stored in:
/var/log directory
Some applications like to create their own directory like:
/var/log/apache2
How to view logfiles?
Hmmmm... They are plaintext files, so this may seem rather obvious, BUT since logfiles can sometimes be HUGE, being able to search through a logfile is a critical skill.
Commands that I find most useful:
cat, awk, head, tail, grep
For example: cat syslog | grep -i cron
Some logfiles are automatically compressed to save space after a while (this is also configurable). They will usually end with a gz extension. You could ungzip it to view, but you could also view with zcat.
If you have loaded the logfile with less, you can search for strings using the / forward slash.
The syslog
Pretty much the most important logfile
We will just say that a lot of services and processes write their log information into this file (NOT ALL services, but a lot of them), like:
CRON
Network Manager
systemd
kernel
Let's say that pretty much any process or service that is built-in to Ubuntu will log messages there.
Send your own messages there with the logger command.
The troubleshooting process
As we install and configure various services, the logfile can provide valuable information to you, but you must be patient and persist. Here are some general steps for debugging:
restart the service
if the service has problems
check the appropriate logfile
Filtering your way through the information in the logfile will likely be necessary, you may do this by grepping for a timestamp, or an error code
Many times the logfile will tell you what the problem is, but they won't tell you how to solve it.