Parsing apache log files
Jim Richardson
warlock at eskimo.com
Fri Feb 20 19:01:15 EST 2004
On Fri, 20 Feb 2004 09:20:00 -0800,
Josiah Carlson <jcarlson at nospam.uci.edu> wrote:
>> thanks, although reading that re makes my brain hurt! :), and I don't
>> think it handles the case where the dashes are something else (the dash
>> is a place holder for some data that wasn't there on this request,
>> bytelength, referrer, something) but I'll look into it, thanks for the
>> example.
>
> It depends on which dash you were talking about. The dash immediately
> after the response code is the number of bytes sent, and is handled by
> the regular expression.
>
> Unless you use identd checks, the first '-' will always be there, though
> the second '-' is the identity of the client given through http auth,
> which may or may not be important to you.
>
<snip>
It was the http auth, which for some reason, show up from time to time,
may be a misconfigured router/proxy don't know. But this works, although
my brain is still parsing the regexp :) Thank you very much for your
help.
--
Jim Richardson http://www.eskimo.com/~warlock
One man's religion is another man's belly laugh.
More information about the Python-list
mailing list