Re: Using Extnded Common Log Format

Joi Ellis (Joi.Ellis@cdc.com)
Wed, 30 Jun 1999 12:18:17 -0500 (CDT)


On Wed, 30 Jun 1999, Mark Avnet wrote:

> ($host, $rfc931, $authuser, $timestamp, $request, $status, $bytes) =
>             /^(\S+) (\S+) (\S+) \[([^\]]*)\] \"([^"]*)\" (\S+) (\S+)/;
> 
> my new linw for parsing the extended log format is:
> 
>      ($host, $rfc931, $authuser, $timestamp, $request, $status, $bytes,
> $ref,
>  $null1, $null2, $browser, $platform) =
>             /^(\S+) (\S+) (\S+) \[([^\]]*)\] \"([^"]*)\" (\S+) (\S+)
> \"([^"]*)\ (\S+) (\S+) (\S+) (\S+)/;
            "

Are you missing that ending quote?

> \"([^"]*)\" (\S+) (\S+) (\S+) (\S+)/;
            ^---
--
Joi Ellis                   joi.ellis@cdc.com
Outsourcing Solutions       
Control Data Systems        gyles19@visi.com, http://www.visi.com/~gyles19/

No matter what we think of Linux versus FreeBSD, etc., the one thing I 
really like about Linux is that it has Microsoft worried.  Anything 
that kicks a monopoly in the pants has got to be good for something.
              - Chris Johnson