Logs

What's going on?

Every event and error within linux will be logged somewhere - which is great when trying to diagnose a problem.

Obviously some logs can get a bit big so looking through them can be time consuming.  A quick way to get a snapshot if you suspect a certain error, or can replicate a reported or observed error is to tail the log that will be related to that service.

As an example, to see what's happening with Apache, simply tail the httpd error log file:

tail -100 /var/log/httpd/error_log