From e2d449fccb3a0100a8dc38595edfa24b1c61cb87 Mon Sep 17 00:00:00 2001 From: Rich Bowen Date: Sat, 9 Aug 2008 17:56:14 +0000 Subject: [PATCH] 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 --- docs/manual/programs/other.html.en | 20 ++++++++++++++++---- docs/manual/programs/other.xml | 18 +++++++++++++++--- 2 files changed, 31 insertions(+), 7 deletions(-) diff --git a/docs/manual/programs/other.html.en b/docs/manual/programs/other.html.en index 5a8f555fb9..c4bf2f592b 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 bc2402e775..8fe9700401 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 +
-- 2.40.0