Enhancement request
Francis J. Lacoste
flacoste at logreport.org
Sun Nov 10 18:14:30 CET 2002
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.
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://lists.logreport.org/pipermail/development/attachments/20021110/6f223f82/attachment.bin
More information about the Development
mailing list