LinuxSA Mailing list archives

Index: [thread] [date] [subject] [author]
  From: Darryl Ross <darryl@bachblue.com.au>
  To  : linuxsa@linuxsa.org.au
  Date: Tue, 24 Nov 1998 16:22:29 +1030

Apache Log format

Hey All,

Been playing around with the apache logfile format, and am just
wondering if I can change the form of a couple of fields. Noteably the
date and the request field. Currently I am using:

LogFormat "%h %t \"%r\""

in the httpd.conf. Which gives a log format like:

192.168.1.2 [24/Nov/1998:16:22:42 +1030] "GET / HTTP/1.0"
192.168.1.2 [24/Nov/1998:16:22:42 +1030] "GET /menu.html HTTP/1.0"
192.168.1.2 [24/Nov/1998:16:22:42 +1030] "GET /home.html HTTP/1.0"

What I want to know is, can I change the date field to 'forget' the
timezone and change the : between the date and time to a '-'. And also,
drop the GET and HTTP verson from the request field?

T'would be great if anyone can help :)

Cheers
Dazz

-- 
Check out the LinuxSA web pages at http://www.linuxsa.org.au/
To unsubscribe from the LinuxSA list:
  mail linuxsa-request@linuxsa.org.au with "unsubscribe" as the subject


Index: [thread] [date] [subject] [author]
Return to the LinuxSA Mailing List Information Page