Archives
|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Summary-Talk] Custom log style - osx server/ Summary
I'd like to log using the combined log format so that I can process
my logs using Summary.
Here is a relavent bit from "httpd_macosxserver.conf"
## 7. Don't modify the CustomLog, ErrorLog, or SSLLog directives; if you
## want to change them, use Server Settings to turn logging *off* and add
a
## second logging directive after the one that it generates.
Specifically:
## Server Settings generates a log directive like this when the
## "Enable access log" box us unchecked:
##
## CustomLog "/dev/null" "%h %l %u %t \"r\" %>s %b"
##
## Leave that one alone, and add your own directive right after it:
##
## CustomLog "/dev/null" "%h %l %u %t \"r\" %>s %b"
## CustomLog "/private/var/log/httpd/access_log" "%v %h %l %u %t
\"r\" %>s %b"
I've set up virtual hosts with logs that get rotated like this:
CustomLog '|"/usr/sbin/rotatelogs"
"/Library/WebServer/logs/subdirectory/access_log" 604800' "%h %l %u
%t \"%r\" %>s %b"
I need to change the log format to this:
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\"
\"%{User-agent}i\"" combined
I'm hoping to use BBEdit to search for:
\rCustomLog '|"/usr/sbin/rotatelogs"
then replace with:
CustomLog "/dev/null" "%h %l %u %t \"r\" %>s %b"\rCustomLog
'|"/usr/sbin/rotatelogs"
Then search for:
"%h %l %u %t \"%r\" %>s %b"
and replace with:
"%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-agent}i\""
How safe is that in my osx server world?
Cameron .:.
--
--
Tantramar Interactive Inc.
http://www.TantramarInteractive.com/
16 Lorne St., Unit 3, Sackville, NB E4L 3Z7
Phone (506) 364-1097 Fax (506) 536-2409
-------------
Go to <http://summary.net/list.html> to update subscription info.
|