From e2d449fccb3a0100a8dc38595edfa24b1c61cb87 Mon Sep 17 00:00:00 2001
From: Rich Bowen 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 "split-logfile
%v
"), and
- that the logfiles should be named that + ".log
" in the current
- directory.%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 @@