From: Rich Bowen Date: Sat, 9 Aug 2008 17:56:14 +0000 (+0000) Subject: Adds LogFormat example to the split-logfiles documentation to clarify X-Git-Tag: 2.3.0~387 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e2d449fccb3a0100a8dc38595edfa24b1c61cb87;p=thirdparty%2Fapache%2Fhttpd.git Adds LogFormat example to the split-logfiles documentation to clarify what is meant about using %v git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@684308 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/docs/manual/programs/other.html.en b/docs/manual/programs/other.html.en index 5a8f555fb90..c4bf2f592b2 100644 --- a/docs/manual/programs/other.html.en +++ b/docs/manual/programs/other.html.en @@ -43,15 +43,27 @@

split-logfile

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 by "%v"), and - that the logfiles should be named that + ".log" in the current - directory.

+ each line is the virtual host identity, put there using the "%v" + variable in LogFormat. +

+ +

+ 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 are running 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

+

Available Languages:  en  | @@ -59,4 +71,4 @@

- \ No newline at end of file + diff --git a/docs/manual/programs/other.xml b/docs/manual/programs/other.xml index bc2402e7759..8fe9700401b 100644 --- a/docs/manual/programs/other.xml +++ b/docs/manual/programs/other.xml @@ -43,15 +43,27 @@
split-logfile

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 by "%v"), and - that the logfiles should be named that + ".log" in the current - directory.

+ each line is the virtual host identity, put there using the "%v" + variable in LogFormat. +

+ + + 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 are running 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 +