Red Hat DIRECTORY SERVER 2.0 - GATEWAY Manual de usuario Pagina 55

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 96
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 54
Chapter 7. Logging
Error log
We will examine the error log to see what is logged and to change the amount of
logging done.
log_config_module
We will load and use a module that allows us to configure exactly what we log for
each request.
Log file rotation
We will illustrate the Red Hat Linux system-wide mechanism for log rotation and
briefly mention, and then discard, an Apache-specific way to do the same thing.
Log file analysis
We will illustrate the use of the webalizer package for processing the log files to pro-
vide a set of web pages illustrating the use of the server.
Legalities
There will be a brief description of the legal implications of keeping log files. The
author is not a lawyer and everything will change as either Parliament implements
yet another piece of contradictory legislation or a senile fool of a high court judge
farts while setting precedent.
The error log
The log file /var/log/httpd/error_log contains the error reports and warnings
from the web server. By default, the directory /var/log/httpd is readable only by
root. You may want to change this on your system. Within the directory, the files are
created world-readable. Only the directory’s permissions need be changed.
Let’s consider a number of the typical entries in the error log as it currently stands.
[Mon Mar 24 10:23:11 2003] [notice] SIGHUP received. Attempting to restart
[Mon Mar 24 10:23:11 2003] [notice] Apache/2.0.40 (Red Hat Linux) configured
-- resuming normal operations
Figure 7-1. error_log: Reloads
Our first example will be seen in the log files from this course more than any other
lines (we hope!). The line that starts SIGHUP received is the logged entry that
means we requested a reload of the configuration file. A SIGHUP is an operating sys-
tem signal sent to a running process (the web server) instructing it to do something.
In our case it is to reread the configuration file.
The line that (hopefully) follows it is the line from Apache that says it has been
(re)configured and that it is “resuming normal operations”, i.e. serving web pages
again.
51
Vista de pagina 54
1 2 ... 50 51 52 53 54 55 56 57 58 59 60 ... 95 96

Comentarios a estos manuales

Sin comentarios