up previous next contents
Next: Appendix A Up: The Apache Log Files Previous: The Apache Log Files   Contents

Two Log Files - access_log and error_log

  1. Every time a browser accesses your HTTP server, Apache writes information to it's log files.
  2. These log files are usually in the /usr/local/lib/apache/logs directory, and are named:

access_log Contains a log of every request made to your server.
error_log A log of every error recorded by your server (bad URL's, missing documents, problems with CGI scripts, etc.).

  1. These files are plain text files that you can view with the cat, more, or vi commands (or other text-oriented commands like grep, perl, or awk).
  2. Many people and companies provide tools for interpreting the contents of log files. Some common names are analog, getstat., and http-analyze.
  3. The access_log file grows about 10K in size for each 100 hits. The error_log file grows much more slowly.


up previous next contents
Next: Appendix A Up: The Apache Log Files Previous: The Apache Log Files   Contents