O'Reilly logo

Sams Teach Yourself Apache 2 in 24 Hours by Ian Kallen, Daniel López Ridruejo

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 8. Logging and Monitoring

This hour describes how the logging system in Apache works and how to customize it—which information to store and where to do it. In this hour, you will learn how to

  • Understand log formats and logging levels

  • Rotate and analyze logs

  • Interpret common errors that might appear in your logs

  • Monitor Apache resource usage and performance using mod_status

Logging HTTP Requests

You can keep track of who visits your Web sites by logging accesses to the servers hosting them. You can log every aspect of the requests and responses, including the IP address of the client, the user, and the resource accessed. You need to take three steps to create a request log:

  1. Define what you want to log; your log format

  2. Define where you want to log ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required