Using Apache Logs

Proper monitoring of log files is an important part of Web server maintenance.

Apache provides several logs that can be configured and various ways of organizing them. However, Web site log maintenance should be regarded as a black art: There is no single way to do it right. Be aware that decisions you make regarding logs can have unintended consequences. To take one example, Web server logs that are not maintained can swell to fill available disk space.

A useful technique for monitoring log files is to use the tail command with its –f switch to follow the end of the log file as the file grows in a terminal or teelnet window. For more information on tail, see Chapter 11.

By default, Red Hat Linux 6 is initialized with only ...

Get Red Hat Linux 6: Visual QuickPro Guide now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.