List Info

Thread: Logging Options - Extended W3C Log Format?




Logging Options - Extended W3C Log Format?
country flaguser name
Australia
2007-10-14 21:50:17
All,

I've recently had a request from one of our clients to
provide their logs 
in the 'Extended W3C Log Format'.  From my googling around
the 
place, this appears to be pretty much a log format exclusive
to IIS.

>From poking around google and reading http://www.w3.or
g/TR/WD-logfile.html 
the fomat looks awfully strange.

Is it possible to configure Apache in a way to create
logfiles in 
this format without using some sort of external logging
system?  Perhaps 
my google-fu is letting me down severely that I havent found
an easy way 
to do it yet - but maybe this is simply not possible to do
'out of the 
box'.

Thanks in advance


Regards
jrm

------------------------------------------------------------
---------
The official User-To-User support forum of the Apache HTTP
Server Project.
See <URL:http://htt
pd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribehttpd.apache.org
   "   from the digest: users-digest-unsubscribehttpd.apache.org
For additional commands, e-mail: users-helphttpd.apache.org


Re: Logging Options - Extended W3C Log Format?
user name
2007-10-15 01:47:31
W3C's Extended Log File Format adds some header information
to
standard logs.  The Working Draft datetime examples use
language-dependent month names; the ISO format for datetimes
would be
better if the W3C can be convinced to follow standards. 
Here is an
example:

#Version: 1.0
#Fields: remotehost rfc931 authuser [date]
"request" status bytes
"referer" "browser"
#Software: Apache-httpd-2.2.6
#Start-Date: 20070901T000000Z
#End-Date: 20070930T235959Z
#Date: 20071001T000001Z
#Remark: Sample Header for W3C Extended Log Format using
Apache
httpd's Combined Format

The Extended Format should not be implemented by logging
software
because the data should be added after the log is closed. 
This
function could be included in log rotation software.

Most of the data is constant once a server is configured;
only the
three datetimes change.  The Date field is useless.  The
Start-Date
and End-Date datetimes are only important to make certain no
logs are
missing and should be specified as the same time for
consecutive logs.
Most logs would not need those fields -- just look at the
dates for
the first and last entries.  The Fields field could be very
useful,
but the W3C does not explain the field names well -- the
specifications are imprecise and confuse field names with
field types.
 Adding a unique and immutable key for the log's source
would be
useful.

#Version: 1.0
#Source: Solprovider.com-Combined-httpd-Log
#Software: Apache-httpd-2.2.6
#Fields: remotehost rfc931 authuser [datetime]
"request" status bytes
"referer" "browser"
#Remark: Sample Header for W3C Extended Log Format using
Apache
httpd's Combined Format

--
Just add the information to the log file before you send it.
 1) Open
file.  2) Paste standard text.  3) Fix datetimes. 4) Save
file.  5)
Send.

Ask whoever automated Step 5 to add this function to that
process.

solprovider


On 10/14/07, J R M <jrm.apachedarktide.net> wrote:
> I've recently had a request from one of our clients to
provide their logs
> in the 'Extended W3C Log Format'.  From my googling
around the
> place, this appears to be pretty much a log format
exclusive to IIS.
>
> From poking around google and reading http://www.w3.or
g/TR/WD-logfile.html
> the fomat looks awfully strange.
>
> Is it possible to configure Apache in a way to create
logfiles in
> this format without using some sort of external logging
system?  Perhaps
> my google-fu is letting me down severely that I havent
found an easy way
> to do it yet - but maybe this is simply not possible to
do 'out of the
> box'.
>
> Thanks in advance
> Regards
> jrm

------------------------------------------------------------
---------
The official User-To-User support forum of the Apache HTTP
Server Project.
See <URL:http://htt
pd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribehttpd.apache.org
   "   from the digest: users-digest-unsubscribehttpd.apache.org
For additional commands, e-mail: users-helphttpd.apache.org


[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )