From df6e00784a60837ea8f41ce0b96e30b24274efcc Mon Sep 17 00:00:00 2001 From: =?utf8?q?Andr=C3=A9=20Malo?= Date: Tue, 11 Sep 2012 20:03:10 +0000 Subject: [PATCH] update properties. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1383596 13f79535-47bb-0310-9956-ffa450edef68 --- docs/manual/programs/log_server_status.xml | 118 ++++++++++----------- docs/manual/programs/split-logfile.xml | 116 ++++++++++---------- 2 files changed, 117 insertions(+), 117 deletions(-) diff --git a/docs/manual/programs/log_server_status.xml b/docs/manual/programs/log_server_status.xml index 0ad45af895..034bf27092 100644 --- a/docs/manual/programs/log_server_status.xml +++ b/docs/manual/programs/log_server_status.xml @@ -1,59 +1,59 @@ - - - - - - - - -Programs - -log_server_status - Log periodic status summaries - - -

This perl script is designed to be run at a frequent interval by - something like cron. It connects to the server and downloads the status - information. It reformats the information to a single line and logs it to - a file. Adjust the variables at the top of the script to specify the - location of the resulting logfile. mod_status will - need to be loaded and configured in order for this script to do its - job.

-
- -
Usage - -

The script contains the following section.

- - -my $wherelog = "/usr/local/apache2/logs/"; # Logs will be like "/usr/local/apache2/logs/19960312" -my $server = "localhost"; # Name of server, could be "www.foo.com" -my $port = "80"; # Port on server -my $request = "/server-status/?auto"; # Request to send - - -

You'll need to ensure that these variables have the correct values, -and you'll need to have the /server-status handler -configured at the location specified, and the specified log location -needs to be writable by the user which will run the script.

- -

Run the script periodically via cron to produce a daily log file, -which can then be used for statistical analysis.

- -
- -
+ + + + + + + + +Programs + +log_server_status - Log periodic status summaries + + +

This perl script is designed to be run at a frequent interval by + something like cron. It connects to the server and downloads the status + information. It reformats the information to a single line and logs it to + a file. Adjust the variables at the top of the script to specify the + location of the resulting logfile. mod_status will + need to be loaded and configured in order for this script to do its + job.

+
+ +
Usage + +

The script contains the following section.

+ + +my $wherelog = "/usr/local/apache2/logs/"; # Logs will be like "/usr/local/apache2/logs/19960312" +my $server = "localhost"; # Name of server, could be "www.foo.com" +my $port = "80"; # Port on server +my $request = "/server-status/?auto"; # Request to send + + +

You'll need to ensure that these variables have the correct values, +and you'll need to have the /server-status handler +configured at the location specified, and the specified log location +needs to be writable by the user which will run the script.

+ +

Run the script periodically via cron to produce a daily log file, +which can then be used for statistical analysis.

+ +
+ +
diff --git a/docs/manual/programs/split-logfile.xml b/docs/manual/programs/split-logfile.xml index f1291cc003..6cb5b38463 100644 --- a/docs/manual/programs/split-logfile.xml +++ b/docs/manual/programs/split-logfile.xml @@ -1,58 +1,58 @@ - - - - - - - - -Programs - -split-logfile - Split up multi-vhost logfiles - - -

This perl script will take a combined Web server access log file and - break its contents into separate files. It assumes that the first field of - each line is the virtual host identity, put there using the "%v" - variable in LogFormat. -

-
- -
Usage - -

Create a log file with virtual host information in it:

- - -LogFormat "%v %h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-agent}i\"" combined_plus_vhost -CustomLog logs/access_log combined_plus_vhost - - -

Log files will be created, in the directory where you run the - script, for each virtual host name that appears in the combined log file. - These logfiles will named after the hostname, with a - .log file extension.

- -

The combined log file is read from stdin. Records read will be appended - to any existing log files.

- - split-logfile < access_log - - -
- -
+ + + + + + + + +Programs + +split-logfile - Split up multi-vhost logfiles + + +

This perl script will take a combined Web server access log file and + break its contents into separate files. It assumes that the first field of + each line is the virtual host identity, put there using the "%v" + variable in LogFormat. +

+
+ +
Usage + +

Create a log file with virtual host information in it:

+ + +LogFormat "%v %h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-agent}i\"" combined_plus_vhost +CustomLog logs/access_log combined_plus_vhost + + +

Log files will be created, in the directory where you run the + script, for each virtual host name that appears in the combined log file. + These logfiles will named after the hostname, with a + .log file extension.

+ +

The combined log file is read from stdin. Records read will be appended + to any existing log files.

+ + split-logfile < access_log + + +
+ +
-- 2.50.1