Return-Path: X-Original-To: apmail-httpd-cvs-archive@www.apache.org Delivered-To: apmail-httpd-cvs-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 471D0921F for ; Fri, 4 May 2012 14:40:12 +0000 (UTC) Received: (qmail 89150 invoked by uid 500); 4 May 2012 14:40:12 -0000 Delivered-To: apmail-httpd-cvs-archive@httpd.apache.org Received: (qmail 89098 invoked by uid 500); 4 May 2012 14:40:12 -0000 Mailing-List: contact cvs-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: dev@httpd.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list cvs@httpd.apache.org Received: (qmail 89091 invoked by uid 99); 4 May 2012 14:40:12 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 04 May 2012 14:40:12 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 04 May 2012 14:40:10 +0000 Received: from eris.apache.org (localhost [127.0.0.1]) by eris.apache.org (Postfix) with ESMTP id 06C422388978; Fri, 4 May 2012 14:39:50 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1333996 - in /httpd/httpd/branches/2.4.x/docs/manual/programs: log_server_status.xml split-logfile.xml Date: Fri, 04 May 2012 14:39:49 -0000 To: cvs@httpd.apache.org From: humbedooh@apache.org X-Mailer: svnmailer-1.0.8-patched Message-Id: <20120504143950.06C422388978@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: humbedooh Date: Fri May 4 14:39:49 2012 New Revision: 1333996 URL: http://svn.apache.org/viewvc?rev=1333996&view=rev Log: Backporting syntax highlighting for programs/ Modified: httpd/httpd/branches/2.4.x/docs/manual/programs/log_server_status.xml httpd/httpd/branches/2.4.x/docs/manual/programs/split-logfile.xml Modified: httpd/httpd/branches/2.4.x/docs/manual/programs/log_server_status.xml URL: http://svn.apache.org/viewvc/httpd/httpd/branches/2.4.x/docs/manual/programs/log_server_status.xml?rev=1333996&r1=1333995&r2=1333996&view=diff ============================================================================== --- httpd/httpd/branches/2.4.x/docs/manual/programs/log_server_status.xml (original) +++ httpd/httpd/branches/2.4.x/docs/manual/programs/log_server_status.xml Fri May 4 14:39:49 2012 @@ -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.

+ +
+ +
Modified: httpd/httpd/branches/2.4.x/docs/manual/programs/split-logfile.xml URL: http://svn.apache.org/viewvc/httpd/httpd/branches/2.4.x/docs/manual/programs/split-logfile.xml?rev=1333996&r1=1333995&r2=1333996&view=diff ============================================================================== --- httpd/httpd/branches/2.4.x/docs/manual/programs/split-logfile.xml (original) +++ httpd/httpd/branches/2.4.x/docs/manual/programs/split-logfile.xml Fri May 4 14:39:49 2012 @@ -1,59 +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 + + +
+ +