Enhancement request

Brett Hales brett.hales at baesystems.com
Tue Nov 12 06:43:08 CET 2002



On Mon, 2002-11-11 at 03:44, Francis J. Lacoste wrote:
> On dim, 2002-11-03 at 19:02, Brett Hales wrote:
> > Hi,
> > 
> > I use log report to process squid logs, we have multiple domains that
> > authenticate against squid. Hence when the report is written, user
> names
> > show up like the below.
> > 
> > For domain name AU with user name Joe Bloggs.
> > 
> > AU%5cJBloggs
> > 
> > Is it possible to strip out anything before %5c?
> > 
> 
> As this is a very site-specific request, I suggest you use a script to
> filter that from the log file before processing it with Lire.

I understand, however one thing I believe that should be included in
logreport is to change the case on all the usernames to lowercase.

Eg If Joe Bloggs authenticates with the username JBloggs or jbloggs they
appear twice on the logreport. I currently use tr/A-Z/a-z however it
would be good to incorporate this into logreport.

Thanks again for the below.

> 
> The following perl one-liner would do the trick:
> 
> perl -ane '$F[7] =~ s/.*%5c//; print join( " ", @F), "\n" ' < access_log
>    > new_log
> 
> 
> Thanks for your interest in LogReport, kind Regards,
> 
> Francis J. Lacoste
> 
> -- 
> Francis J. Lacoste              . .           http://www.logreport.org
> /^LogReport$/               . .               flacoste at logreport.org
-- 
Brett Hales


-- 
To UNSUBSCRIBE, email to development-request at logreport.org with a subject of
"unsubscribe". Trouble? Send an email with subject "help" to
development-request at logreport.org



More information about the Development mailing list